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