summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-03-16 03:53:06 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-03-16 03:53:06 (GMT)
commit3ad6c81aa83491b7e6d2d54c15daf16894a72299 (patch)
treeb4ae2f10e1e5aedc7ee240a4dee3f80f63df1a9b
parent3860dd2b6022b1bb4198eebc8cf79c1206c77f8c (diff)
libmythui: Fix fullscreen windowing with Compiz (and Gnome?)
This is based on the patch from Lawrence Rust in ticket #9589 which notes that Compiz requires the window to be visible before we set its state. Testing across various Ubuntu desktops (with and without Compiz and composite enabled) and on OSX and windows suggests that it is safe just to show the window earlier in the initialisation process and avoid the ifdef.
-rw-r--r--mythtv/libs/libmythui/mythmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmythui/mythmainwindow.cpp b/mythtv/libs/libmythui/mythmainwindow.cpp
index 1d4e046..6e917cb 100644
--- a/mythtv/libs/libmythui/mythmainwindow.cpp
+++ b/mythtv/libs/libmythui/mythmainwindow.cpp
@@ -915,6 +915,7 @@ void MythMainWindow::Init(void)
#endif
setWindowFlags(flags);
+ Show();
if (d->does_fill_screen && !GetMythUI()->IsGeometryOverridden())
{
@@ -929,7 +930,6 @@ void MythMainWindow::Init(void)
setFixedSize(QSize(d->screenwidth, d->screenheight));
GetMythUI()->ThemeWidget(this);
- Show();
if (!GetMythDB()->GetNumSetting("HideMouseCursor", 0))
setMouseTracking(true); // Required for mouse cursor auto-hide