Permalink
Browse files

libmythui: Fix window positioning for multi-screen setups.

3ad6c81 (fullscreen window fix for Compiz) broke window
positioning when using multi-screen setups. Another round of testing
later and it looks like we just need to initialise a few vars before the
Show(). No obvious regressions...
  • Loading branch information...
1 parent f1ab9ed commit 4322464f6bd4f5a2c26ab7bb85d0cb8cee8113e2 Mark Kendall committed Mar 17, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythtv/libs/libmythui/mythmainwindow.cpp
@@ -915,6 +915,10 @@ void MythMainWindow::Init(void)
#endif
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())
@@ -923,9 +927,6 @@ void MythMainWindow::Init(void)
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));

0 comments on commit 4322464

Please sign in to comment.