aboutsummaryrefslogtreecommitdiff
path: root/sway/lock.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-12-01 15:38:33 -0500
committerSimon Ser <contact@emersion.fr>2022-12-01 23:27:22 +0100
commit6b3245ac77a881ec2c35f9a420fcea0d000f99c3 (patch)
treea2ad302f6d1d18a6fd464eaa33498410d952569d /sway/lock.c
parentaa03a8fcb54a89752d154605c4b6064c84c9be44 (diff)
sway/lock: handle mode in output commit handler
Diffstat (limited to 'sway/lock.c')
-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 {
struct wl_listener map;
struct wl_listener destroy;
struct wl_listener surface_commit;
- struct wl_listener output_mode;
struct wl_listener output_commit;
struct wl_listener output_destroy;
};
@@ -40,12 +39,6 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
output_damage_surface(surf->output, 0, 0, surf->surface, false);
}
-static void handle_output_mode(struct wl_listener *listener, void *data) {
- struct sway_session_lock_surface *surf = wl_container_of(listener, surf, output_mode);
- wlr_session_lock_surface_v1_configure(surf->lock_surface,
- surf->output->width, surf->output->height);
-}
-
static void handle_output_commit(struct wl_listener *listener, void *data) {
struct wlr_output_event_commit *event = data;
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) {
wl_list_remove(&surf->map.link);
wl_list_remove(&surf->destroy.link);
wl_list_remove(&surf->surface_commit.link);
- wl_list_remove(&surf->output_mode.link);
wl_list_remove(&surf->output_commit.link);
wl_list_remove(&surf->output_destroy.link);
output_damage_whole(surf->output);
@@ -115,8 +107,6 @@ static void handle_new_surface(struct wl_listener *listener, void *data) {
wl_signal_add(&lock_surface->events.destroy, &surf->destroy);
surf->surface_commit.notify = handle_surface_commit;
wl_signal_add(&surf->surface->events.commit, &surf->surface_commit);
- surf->output_mode.notify = handle_output_mode;
- wl_signal_add(&output->wlr_output->events.mode, &surf->output_mode);
surf->output_commit.notify = handle_output_commit;
wl_signal_add(&output->wlr_output->events.commit, &surf->output_commit);
surf->output_destroy.notify = handle_output_destroy;