This commit is contained in:
Kovid Goyal 2024-03-25 08:54:10 +05:30
parent de1dee6c3b
commit 5f7e53bfde
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

2
glfw/wl_window.c vendored
View file

@ -315,7 +315,7 @@ commit_window_surface_if_safe(_GLFWwindow *window) {
static void
update_regions(_GLFWwindow* window) {
if (is_layer_shell(window) && window->wl.layer_shell.config.type == GLFW_LAYER_SHELL_PANEL) {
if (is_layer_shell(window) && window->wl.layer_shell.config.type == GLFW_LAYER_SHELL_PANEL && window->wl.layer_shell.zwlr_layer_surface_v1) {
int32_t exclusive_zone = 1;
switch (window->wl.layer_shell.config.edge) {
case GLFW_EDGE_TOP: case GLFW_EDGE_BOTTOM: exclusive_zone = window->wl.height; break;