mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +00:00
X11: Fix glfwSetWindowMonitor not updating hints
This makes glfwSetWindowMonitor update the WM_NORMAL_HINTS when resizing non-user-resizable windowed mode windows.
This commit is contained in:
parent
c90c7b9710
commit
cde0aaaab1
@ -245,6 +245,8 @@ information on what to include when reporting a bug.
|
|||||||
- [X11] Bugfix: NVidia EGL would segfault if unloaded before closing the display
|
- [X11] Bugfix: NVidia EGL would segfault if unloaded before closing the display
|
||||||
- [X11] Bugfix: Checking window maximized attrib could crash some WMs (#1356)
|
- [X11] Bugfix: Checking window maximized attrib could crash some WMs (#1356)
|
||||||
- [X11] Bugfix: Update cursor position on enter event (#1366)
|
- [X11] Bugfix: Update cursor position on enter event (#1366)
|
||||||
|
- [X11] Bugfix: `glfwSetWindowMonitor` did not update hints when resizing
|
||||||
|
non-user-resizable windows
|
||||||
- [Linux] Added workaround for missing `SYN_DROPPED` in pre-2.6.39 kernel
|
- [Linux] Added workaround for missing `SYN_DROPPED` in pre-2.6.39 kernel
|
||||||
headers (#1196)
|
headers (#1196)
|
||||||
- [Linux] Moved to evdev for joystick input (#906,#1005)
|
- [Linux] Moved to evdev for joystick input (#906,#1005)
|
||||||
|
@ -2403,6 +2403,9 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (!window->resizable)
|
||||||
|
updateNormalHints(window, width, height);
|
||||||
|
|
||||||
XMoveResizeWindow(_glfw.x11.display, window->x11.handle,
|
XMoveResizeWindow(_glfw.x11.display, window->x11.handle,
|
||||||
xpos, ypos, width, height);
|
xpos, ypos, width, height);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user