Permalink
Browse files

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.
  • Loading branch information...
Mark Kendall
Mark Kendall committed Mar 16, 2011
1 parent 3860dd2 commit 3ad6c81aa83491b7e6d2d54c15daf16894a72299
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 3ad6c81

Please sign in to comment.