summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 2e748a6767..7492fc9fdd 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1086,6 +1086,7 @@ void vo_x11_create_vo_window(XVisualInfo *vis, int x, int y,
{
XGCValues xgcv;
if (WinID >= 0) {
+ vo_fs = flags & VOFLAG_FULLSCREEN;
vo_window = WinID ? (Window)WinID : mRootWin;
if (col_map != CopyFromParent) {
unsigned long xswamask = CWColormap;
@@ -1343,7 +1344,11 @@ void vo_x11_fullscreen(void)
{
int x, y, w, h;
- if (WinID >= 0 || vo_fs_flip)
+ if (WinID >= 0) {
+ vo_fs = !vo_fs;
+ return;
+ }
+ if (vo_fs_flip)
return;
if (vo_fs)