mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01:00
Wayland: Fix invalid size protocol error
This could happen when resizing a window with fallback decorations. Fixes #2204
This commit is contained in:
@@ -340,6 +340,9 @@ static void resizeFramebuffer(_GLFWwindow* window)
|
||||
|
||||
static GLFWbool resizeWindow(_GLFWwindow* window, int width, int height)
|
||||
{
|
||||
width = _glfw_max(width, 1);
|
||||
height = _glfw_max(height, 1);
|
||||
|
||||
if (width == window->wl.width && height == window->wl.height)
|
||||
return GLFW_FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user