Wayland: Fix using remote control to resize OS windows on some tiling compositors leading to broken rendering

This commit is contained in:
Kovid Goyal
2026-07-21 10:12:34 +05:30
parent 6ed833e163
commit bb1088a87a
2 changed files with 7 additions and 0 deletions

5
glfw/wl_window.c vendored
View File

@@ -1716,6 +1716,11 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
return;
}
if (width != window->wl.width || height != window->wl.height) {
if (window->wl.current.toplevel_states & TOPLEVEL_STATE_DOCKED) {
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
"Wayland: Resizing of docked windows is not supported");
return;
}
window->wl.user_requested_content_size.width = width;
window->wl.user_requested_content_size.height = height;
int32_t w = 0, h = 0;