aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/lock.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sway/lock.c b/sway/lock.c
index bf7d5de8..6e7aae77 100644
--- a/sway/lock.c
+++ b/sway/lock.c
@@ -13,7 +13,6 @@ struct sway_session_lock_surface {
13 struct wl_listener map; 13 struct wl_listener map;
14 struct wl_listener destroy; 14 struct wl_listener destroy;
15 struct wl_listener surface_commit; 15 struct wl_listener surface_commit;
16 struct wl_listener output_mode;
17 struct wl_listener output_commit; 16 struct wl_listener output_commit;
18 struct wl_listener output_destroy; 17 struct wl_listener output_destroy;
19}; 18};
@@ -40,12 +39,6 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
40 output_damage_surface(surf->output, 0, 0, surf->surface, false); 39 output_damage_surface(surf->output, 0, 0, surf->surface, false);
41} 40}
42 41
43static void handle_output_mode(struct wl_listener *listener, void *data) {
44 struct sway_session_lock_surface *surf = wl_container_of(listener, surf, output_mode);
45 wlr_session_lock_surface_v1_configure(surf->lock_surface,
46 surf->output->width, surf->output->height);
47}
48
49static void handle_output_commit(struct wl_listener *listener, void *data) { 42static void handle_output_commit(struct wl_listener *listener, void *data) {
50 struct wlr_output_event_commit *event = data; 43 struct wlr_output_event_commit *event = data;
51 struct sway_session_lock_surface *surf = wl_container_of(listener, surf, output_commit); 44 struct sway_session_lock_surface *surf = wl_container_of(listener, surf, output_commit);
@@ -76,7 +69,6 @@ static void destroy_lock_surface(struct sway_session_lock_surface *surf) {
76 wl_list_remove(&surf->map.link); 69 wl_list_remove(&surf->map.link);
77 wl_list_remove(&surf->destroy.link); 70 wl_list_remove(&surf->destroy.link);
78 wl_list_remove(&surf->surface_commit.link); 71 wl_list_remove(&surf->surface_commit.link);
79 wl_list_remove(&surf->output_mode.link);
80 wl_list_remove(&surf->output_commit.link); 72 wl_list_remove(&surf->output_commit.link);
81 wl_list_remove(&surf->output_destroy.link); 73 wl_list_remove(&surf->output_destroy.link);
82 output_damage_whole(surf->output); 74 output_damage_whole(surf->output);
@@ -115,8 +107,6 @@ static void handle_new_surface(struct wl_listener *listener, void *data) {
115 wl_signal_add(&lock_surface->events.destroy, &surf->destroy); 107 wl_signal_add(&lock_surface->events.destroy, &surf->destroy);
116 surf->surface_commit.notify = handle_surface_commit; 108 surf->surface_commit.notify = handle_surface_commit;
117 wl_signal_add(&surf->surface->events.commit, &surf->surface_commit); 109 wl_signal_add(&surf->surface->events.commit, &surf->surface_commit);
118 surf->output_mode.notify = handle_output_mode;
119 wl_signal_add(&output->wlr_output->events.mode, &surf->output_mode);
120 surf->output_commit.notify = handle_output_commit; 110 surf->output_commit.notify = handle_output_commit;
121 wl_signal_add(&output->wlr_output->events.commit, &surf->output_commit); 111 wl_signal_add(&output->wlr_output->events.commit, &surf->output_commit);
122 surf->output_destroy.notify = handle_output_destroy; 112 surf->output_destroy.notify = handle_output_destroy;