Mercurial > mplayer.hg
comparison gui/wm/ws.c @ 33937:ab4b48ef5a68
Add a parameter to vo_x11_ewmh_fullscreen().
This allows to control to which window the event shall be sent.
author | ib |
---|---|
date | Sat, 27 Aug 2011 16:51:52 +0000 |
parents | 162828e38481 |
children | 75b858ef3666 |
comparison
equal
deleted
inserted
replaced
33936:f27fe61c62f7 | 33937:ab4b48ef5a68 |
---|---|
888 void wsFullScreen(wsTWindow *win) | 888 void wsFullScreen(wsTWindow *win) |
889 { | 889 { |
890 int decoration = 0; | 890 int decoration = 0; |
891 | 891 |
892 if (win->isFullScreen) { | 892 if (win->isFullScreen) { |
893 vo_x11_ewmh_fullscreen(_NET_WM_STATE_REMOVE); // removes fullscreen state if wm supports EWMH | 893 vo_x11_ewmh_fullscreen(win->WindowID, _NET_WM_STATE_REMOVE); // removes fullscreen state if wm supports EWMH |
894 | 894 |
895 if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs | 895 if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs |
896 win->X = win->OldX; | 896 win->X = win->OldX; |
897 win->Y = win->OldY; | 897 win->Y = win->OldY; |
898 win->Width = win->OldWidth; | 898 win->Width = win->OldWidth; |
933 win->isFullScreen = True; | 933 win->isFullScreen = True; |
934 #ifdef ENABLE_DPMS | 934 #ifdef ENABLE_DPMS |
935 wsScreenSaverOff(wsDisplay); | 935 wsScreenSaverOff(wsDisplay); |
936 #endif | 936 #endif |
937 | 937 |
938 vo_x11_ewmh_fullscreen(_NET_WM_STATE_ADD); // adds fullscreen state if wm supports EWMH | 938 vo_x11_ewmh_fullscreen(win->WindowID, _NET_WM_STATE_ADD); // adds fullscreen state if wm supports EWMH |
939 } | 939 } |
940 | 940 |
941 if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs | 941 if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs |
942 vo_x11_decoration(wsDisplay, win->WindowID, decoration); | 942 vo_x11_decoration(wsDisplay, win->WindowID, decoration); |
943 vo_x11_sizehint(win->X, win->Y, win->Width, win->Height, 0); | 943 vo_x11_sizehint(win->X, win->Y, win->Width, win->Height, 0); |