Permalink
Browse files

libmythui: Fix fullscreen windowing with Compiz (and Gnome?)

This is a backport of 3ad6c81 and 4322464 from
master to fixes/0.24
  • Loading branch information...
Mark Kendall
Mark Kendall committed Mar 19, 2011
1 parent ee6aaa7 commit 8cc2e9aa27220248d8b1ba7730e712f27424fa79
Showing with 5 additions and 4 deletions.
  1. +5 −4 mythtv/libs/libmythui/mythmainwindow.cpp
@@ -883,20 +883,21 @@ 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 8cc2e9a

Please sign in to comment.