Dont crash when user attempts to resize panel via remote control

Fixes #8550
This commit is contained in:
Kovid Goyal
2025-04-20 15:19:35 +05:30
parent ef2713a5bd
commit e2cf1e9185
3 changed files with 29 additions and 1 deletions

5
glfw/wl_window.c vendored
View File

@@ -1553,6 +1553,11 @@ void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height)
void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
{
if (is_layer_shell(window)) {
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
"Wayland: Resizing of layer shell surfaces is not supported");
return;
}
if (width != window->wl.width || height != window->wl.height) {
window->wl.user_requested_content_size.width = width;
window->wl.user_requested_content_size.height = height;