aboutsummaryrefslogtreecommitdiffstats
path: root/sway/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/lock.c')
-rw-r--r--sway/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/lock.c b/sway/lock.c
index 6d9e991b..ae44aa40 100644
--- a/sway/lock.c
+++ b/sway/lock.c
@@ -60,7 +60,7 @@ static void destroy_lock_surface(struct sway_session_lock_surface *surf) {
60 60
61 struct wlr_session_lock_surface_v1 *other; 61 struct wlr_session_lock_surface_v1 *other;
62 wl_list_for_each(other, &server.session_lock.lock->surfaces, link) { 62 wl_list_for_each(other, &server.session_lock.lock->surfaces, link) {
63 if (other != surf->lock_surface && other->mapped) { 63 if (other != surf->lock_surface && other->surface->mapped) {
64 next_focus = other->surface; 64 next_focus = other->surface;
65 break; 65 break;
66 } 66 }