Add environment variable to force legacy fullscreen on linux
This commit is contained in:
parent
0a40861be7
commit
cb8ee53edc
@ -688,18 +688,22 @@ bool CIrrDeviceLinux::createWindow()
|
||||
Atom type;
|
||||
int form;
|
||||
unsigned long remain, len;
|
||||
|
||||
Atom WMCheck = XInternAtom(display, "_NET_SUPPORTING_WM_CHECK", false);
|
||||
Status s = XGetWindowProperty(display, DefaultRootWindow(display),
|
||||
WMCheck, 0L, 1L, False, XA_WINDOW,
|
||||
&type, &form, &len, &remain,
|
||||
(unsigned char **)&list);
|
||||
|
||||
|
||||
if (s == Success)
|
||||
const char* disable_netwm = getenv("IRR_DISABLE_NETWM");
|
||||
|
||||
if (!disable_netwm || strcmp(disable_netwm, "0") == 0)
|
||||
{
|
||||
XFree(list);
|
||||
SupportsNetWM = (len > 0);
|
||||
Atom WMCheck = XInternAtom(display, "_NET_SUPPORTING_WM_CHECK", false);
|
||||
Status s = XGetWindowProperty(display, DefaultRootWindow(display),
|
||||
WMCheck, 0L, 1L, False, XA_WINDOW,
|
||||
&type, &form, &len, &remain,
|
||||
(unsigned char **)&list);
|
||||
|
||||
if (s == Success)
|
||||
{
|
||||
XFree(list);
|
||||
SupportsNetWM = (len > 0);
|
||||
}
|
||||
}
|
||||
|
||||
changeResolution();
|
||||
|
Loading…
Reference in New Issue
Block a user