mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Keep X11 full screen window properties on iconify.
This commit is contained in:
parent
c77edaee34
commit
56122cbe2f
|
@ -834,26 +834,6 @@ static void leaveFullscreenMode(_GLFWwindow* window)
|
||||||
_glfw.x11.saver.blanking,
|
_glfw.x11.saver.blanking,
|
||||||
_glfw.x11.saver.exposure);
|
_glfw.x11.saver.exposure);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_glfw.x11.NET_WM_BYPASS_COMPOSITOR)
|
|
||||||
{
|
|
||||||
const unsigned long value = 0;
|
|
||||||
|
|
||||||
XChangeProperty(_glfw.x11.display, window->x11.handle,
|
|
||||||
_glfw.x11.NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32,
|
|
||||||
PropModeReplace, (unsigned char*) &value, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN)
|
|
||||||
{
|
|
||||||
// Ask the window manager to make the GLFW window a normal window
|
|
||||||
// Normal windows usually have frames and other decorations
|
|
||||||
sendEventToWM(window,
|
|
||||||
_glfw.x11.NET_WM_STATE,
|
|
||||||
_NET_WM_STATE_REMOVE,
|
|
||||||
_glfw.x11.NET_WM_STATE_FULLSCREEN,
|
|
||||||
0, 1, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process the specified X event
|
// Process the specified X event
|
||||||
|
|
Loading…
Reference in New Issue
Block a user