From abde2fa81b65550a453d0af3cd8e5b20fdd7a51e Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 8 Sep 2014 23:26:22 +0000 Subject: [PATCH] add -nowmfullscreen argument to kill detection of support for window-manager-assisted fullscreen support. this WILL break alt-tab and things. use with caution (tip: use +set vidx_grabkeyboard 1 to block alt-tab completely, ensuring it can't break too much. if the game becomes unresponsive, you're completely screwed). x11 is so fucked. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4746 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidlinuxglx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index dfd56cf32..b7b35c7e3 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -1440,6 +1440,12 @@ qboolean X_CheckWMFullscreenAvailable(void) qboolean success = false; unsigned char *wmname; int i; + + if (!COM_CheckParm("-nowmfullscreen")) + { + Con_Printf("Window manager fullscreen support disabled. Will attempt to hide from it instead.\n"); + return success; + } if (x11.pXGetWindowProperty(vid_dpy, vid_root, xa_net_supporting_wm_check, 0, 16384, False, AnyPropertyType, &type, &format, &nitems, &bytes_after, &prop) != Success || prop == NULL)