summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-03-19 04:02:11 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-03-19 04:02:11 (GMT)
commit8cc2e9aa27220248d8b1ba7730e712f27424fa79 (patch)
treed47e5184db8b22412755bb4b2f9f338e8d66fb97
parentee6aaa7a650b71faba5a9b4f6623e0faf556bd33 (diff)
libmythui: Fix fullscreen windowing with Compiz (and Gnome?)
This is a backport of 3ad6c81aa83491b7e6d2 and 4322464f6bd4f5a2c26a from master to fixes/0.24
-rw-r--r--mythtv/libs/libmythui/mythmainwindow.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/mythtv/libs/libmythui/mythmainwindow.cpp b/mythtv/libs/libmythui/mythmainwindow.cpp
index 121f4c2..6b605ba 100644
--- a/mythtv/libs/libmythui/mythmainwindow.cpp
+++ b/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));