Permalink
Browse files

libmythui: Revert recent Compiz/fullscreen window fixes.

Some multi-screen setups (TwinView) are still broken despite an
attempted fix. I can't honestly see any combination of initialisation
sequence that fixes both the Compiz issue and doesn't break Twinview
setups, so reverting until someone can figure out a better way.

Refs #9589
(cherry picked from commit 003fc8f)
  • Loading branch information...
1 parent 4ce7cd8 commit db3cfd3273016b741b68541ed322cc89e599a3a1 Mark Kendall committed Mar 20, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 mythtv/libs/libmythui/mythmainwindow.cpp
View
9 mythtv/libs/libmythui/mythmainwindow.cpp
@@ -883,21 +883,20 @@ void MythMainWindow::Init(void)
setWindowFlags(flags);
- d->screenRect = QRect(d->xbase, d->ybase, d->screenwidth, d->screenheight);
- d->uiScreenRect = QRect(0, 0, d->screenwidth, d->screenheight);
-
- Show();
-
if (d->does_fill_screen && !GetMythUI()->IsGeometryOverridden())
{
VERBOSE(VB_GENERAL, "Using Full Screen Window");
setWindowState(Qt::WindowFullScreen);
}
+ d->screenRect = QRect(d->xbase, d->ybase, d->screenwidth, d->screenheight);
+ d->uiScreenRect = QRect(0, 0, d->screenwidth, d->screenheight);
+
setGeometry(d->xbase, d->ybase, d->screenwidth, d->screenheight);
setFixedSize(QSize(d->screenwidth, d->screenheight));
GetMythUI()->ThemeWidget(this);
+ Show();
// Set cursor call must come after Show() to work on some systems.
setCursor((hideCursor) ? (Qt::BlankCursor) : (Qt::ArrowCursor));

0 comments on commit db3cfd3

Please sign in to comment.