From 75164a0e0a409958d10f56b3dabea35914daeba3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Jan 2013 07:47:47 +0100 Subject: x11: fix some obvious video mode switching bugs The original video mode wasn't reliably restored, so just store the mode separately. For some reason, window decorations got into the picture, possibly due to an incorrect initial window position or something like this. Normally, the window is positioned and sized such that it covers the screen entirely, even though the window still has decorations and is not in fullscreen mode (fullscreen wouldn't be correct, because the virtual desktop size is not screen size). Hack-fix by forcing window decorations off when VM-switching. All in all, VM switching is still buggy and useless. --- video/out/x11_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/x11_common.h') diff --git a/video/out/x11_common.h b/video/out/x11_common.h index ab3539b36b..8cafd15650 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -50,6 +50,7 @@ struct vo_x11_state { int fs_flip; int fs_layer; int vm_set; + int vm_orig_w, vm_orig_h; GC f_gc; XSizeHints vo_hint; -- cgit v1.2.3