Wayland: Cleanup

(cherry picked from commit 18df0baea6)
This commit is contained in:
Camilla Löwy 2022-06-12 23:16:16 +02:00
parent fead23153e
commit 8de0c1cdc1

View File

@ -666,14 +666,11 @@ static GLFWbool createXdgSurface(_GLFWwindow* window)
window->monitor->wl.output);
setIdleInhibitor(window, GLFW_TRUE);
}
else if (window->wl.maximized)
{
xdg_toplevel_set_maximized(window->wl.xdg.toplevel);
setIdleInhibitor(window, GLFW_FALSE);
setXdgDecorations(window);
}
else
{
if (window->wl.maximized)
xdg_toplevel_set_maximized(window->wl.xdg.toplevel);
setIdleInhibitor(window, GLFW_FALSE);
setXdgDecorations(window);
}