aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kirill Primak <vyivel@eclair.cafe>2023-06-02 23:18:39 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2023-06-02 22:22:29 +0200
commitc001a57e8bb2912bfce293e71d32fdbe246eae74 (patch)
tree6cdd73f43eaa391ce2b49b0d9a0229dad64a3cf2
parentchore: chase wlroots map logic unification (diff)
downloadsway-c001a57e8bb2912bfce293e71d32fdbe246eae74.tar.gz
sway-c001a57e8bb2912bfce293e71d32fdbe246eae74.tar.zst
sway-c001a57e8bb2912bfce293e71d32fdbe246eae74.zip
lock: listen to the correct map signal
-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;