aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/lock.c b/sway/lock.c
index ae44aa40..53456172 100644
--- a/sway/lock.c
+++ b/sway/lock.c
@@ -104,7 +104,7 @@ static void handle_new_surface(struct wl_listener *listener, void *data) {
104 surf->surface = lock_surface->surface; 104 surf->surface = lock_surface->surface;
105 surf->output = output; 105 surf->output = output;
106 surf->map.notify = handle_surface_map; 106 surf->map.notify = handle_surface_map;
107 wl_signal_add(&lock_surface->events.map, &surf->map); 107 wl_signal_add(&lock_surface->surface->events.map, &surf->map);
108 surf->destroy.notify = handle_surface_destroy; 108 surf->destroy.notify = handle_surface_destroy;
109 wl_signal_add(&lock_surface->events.destroy, &surf->destroy); 109 wl_signal_add(&lock_surface->events.destroy, &surf->destroy);
110 surf->surface_commit.notify = handle_surface_commit; 110 surf->surface_commit.notify = handle_surface_commit;