changeset 33609:beec78d9146f

Enable fullscreen with inactive video window. The combination show_videowin = "no" and load_fullscreen = "yes" didn't work so far.
author ib
date Wed, 22 Jun 2011 11:19:23 +0000
parents 3348a9e99214
children b374c74a5f17
files gui/interface.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Tue Jun 21 20:29:55 2011 +0000
+++ b/gui/interface.c	Wed Jun 22 11:19:23 2011 +0000
@@ -298,8 +298,6 @@
     wsSetIcon(wsDisplay, guiApp.mainWindow.WindowID, &guiIcon);
     wsSetIcon(wsDisplay, guiApp.subWindow.WindowID, &guiIcon);
 
-    guiInfo.Playing = 0;
-
     if (!guiApp.mainDecoration)
         wsWindowDecoration(&guiApp.mainWindow, 0);
 
@@ -356,13 +354,16 @@
 
                 guiApp.subWindow.Mapped = wsMapped;
             }
-            wsVisibleWindow(&guiApp.subWindow, wsShowWindow);
-            uiFullScreen();
+            guiInfo.Playing = 2;   // set pause, because of !gtkShowVideoWindow...
+            uiFullScreen();        // ...guiInfo.Playing is required
+            wsVisibleWindow(&guiApp.subWindow, wsHideWindow);
             btnModify(evFullScreen, btnPressed);
         }
     }
 #endif
 
+    guiInfo.Playing = 0;
+
     uiSubRender = 1;
 
     if (filename)