diff options
author | 2002-05-06 15:05:07 +0000 | |
---|---|---|
committer | 2002-05-06 15:05:07 +0000 | |
commit | 92009fc2f5949a72452bb60b837ac436f924b6c1 (patch) | |
tree | eb6d1b24b9f93d41d719de0c03f96540b5323bf6 /Gui/mplayer/widgets.c | |
parent | 40c0d051f37881afe594099deb15d9538b6bec4c (diff) |
add WM detection, and wm specific fullscreen code. (???)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5998 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/widgets.c')
-rw-r--r-- | Gui/mplayer/widgets.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index ce7bd7fbf4..c5bf2c5a5c 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -18,6 +18,7 @@ #include "./mplayer.h" #include "../events.h" +#include "../app.h" #include "gtk/menu.h" #include "play.h" @@ -128,6 +129,12 @@ void gtkMessageBox( int type,gchar * str ) gtk_widget_show( MessageBox ); } +void gtkSetLayer( GtkWidget * wdg ) +{ + GdkWindowPrivate * win = wdg->window; + wsSetLayer( gdk_display,win->xwindow,appMPlayer.subWindow.isFullScreen ); +} + void gtkShow( int type,char * param ) { switch( type ) @@ -140,27 +147,34 @@ void gtkShow( int type,char * param ) gtkSetDefaultToCList( SkinList,param ); gtk_widget_show( SkinBrowser ); } + gtkSetLayer( SkinBrowser ); break; case evPreferences: gtk_widget_hide( Options ); gtk_widget_show( Options ); + gtkSetLayer( Options ); break; case evPlayList: gtk_widget_hide( PlayList ); gtk_widget_show( PlayList ); + gtkSetLayer( PlayList ); break; case evLoad: ShowFileSelect( fsVideoSelector ); + gtkSetLayer( FileSelect ); break; case evFirstLoad: ShowFileSelect( fsVideoSelector ); + gtkSetLayer( FileSelect ); break; case evLoadSubtitle: ShowFileSelect( fsSubtitleSelector ); + gtkSetLayer( FileSelect ); break; case evAbout: gtk_widget_hide( AboutBox ); gtk_widget_show( AboutBox ); + gtkSetLayer( AboutBox ); break; case evShowPopUpMenu: gtkPopupMenu=evNone; @@ -174,3 +188,5 @@ void gtkShow( int type,char * param ) break; } } + + |