1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Spoike 2014-09-08 23:26:22 +00:00
parent 11279542a1
commit abde2fa81b

View file

@ -1440,6 +1440,12 @@ qboolean X_CheckWMFullscreenAvailable(void)
qboolean success = false; qboolean success = false;
unsigned char *wmname; unsigned char *wmname;
int i; 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) 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)