aboutsummaryrefslogtreecommitdiff
path: root/sway/extensions.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/extensions.c')
-rw-r--r--sway/extensions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/extensions.c b/sway/extensions.c
index 40702e28..547aa931 100644
--- a/sway/extensions.c
+++ b/sway/extensions.c
@@ -65,10 +65,12 @@ void lock_surface_destructor(struct wl_resource *resource) {
if (surface == resource) {
list_del(desktop_shell.lock_surfaces, i);
arrange_windows(&root_container, -1, -1);
- desktop_shell.is_locked = false;
break;
}
}
+ if (desktop_shell.lock_surfaces->length == 0) {
+ desktop_shell.is_locked = false;
+ }
}
static void set_background(struct wl_client *client, struct wl_resource *resource,