Wayland CSD: Dont render window shadows for docked windows

This commit is contained in:
Kovid Goyal
2024-04-08 10:59:03 +05:30
parent 597710dd53
commit d392aba64d
3 changed files with 51 additions and 34 deletions

9
glfw/wl_window.c vendored
View File

@@ -597,13 +597,8 @@ setFullscreen(_GLFWwindow* window, _GLFWmonitor* monitor, bool on) {
_glfwInputError(GLFW_PLATFORM_ERROR, "Wayland compositor does not support fullscreen");
return;
}
if (on) {
xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, monitor ? monitor->wl.output : NULL);
csd_set_visible(window, false);
} else {
xdg_toplevel_unset_fullscreen(window->wl.xdg.toplevel);
csd_set_visible(window, true);
}
if (on) xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, monitor ? monitor->wl.output : NULL);
else xdg_toplevel_unset_fullscreen(window->wl.xdg.toplevel);
}