mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Dont crash when user attempts to resize panel via remote control
Fixes #8550
This commit is contained in:
5
glfw/wl_window.c
vendored
5
glfw/wl_window.c
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user