aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-06-02 23:18:39 +0300
committerSimon Ser <contact@emersion.fr>2023-06-02 22:22:29 +0200
commitc001a57e8bb2912bfce293e71d32fdbe246eae74 (patch)
tree6cdd73f43eaa391ce2b49b0d9a0229dad64a3cf2 /sway
parentc9e1dab3187d22ada0232d699e759a628e0ed185 (diff)
lock: listen to the correct map signal
Diffstat (limited to 'sway')
-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) {
surf->surface = lock_surface->surface;
surf->output = output;
surf->map.notify = handle_surface_map;
- wl_signal_add(&lock_surface->events.map, &surf->map);
+ wl_signal_add(&lock_surface->surface->events.map, &surf->map);
surf->destroy.notify = handle_surface_destroy;
wl_signal_add(&lock_surface->events.destroy, &surf->destroy);
surf->surface_commit.notify = handle_surface_commit;