diff options
author | Simon Ser <contact@emersion.fr> | 2023-07-31 10:07:17 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-07-31 16:25:01 +0200 |
commit | d3626efe5ef96f056f72f320a6487947ff22f8d9 (patch) | |
tree | 2a9e17ec2d911fd6edfc94982ee53b543e63de6b /sway | |
parent | d557b6876b53763d2e9e97c05ec4754f4e9aa984 (diff) |
desktop/output: drop handle_mode()
We already perform the exact same logic on transform/scale change.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/output.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index b5993d23..f052e6f4 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -926,18 +926,6 @@ static void handle_destroy(struct wl_listener *listener, void *data) { update_output_manager_config(server); } -static void handle_mode(struct sway_output *output) { - if (!output->enabled) { - return; - } - - arrange_layers(output); - arrange_output(output); - transaction_commit_dirty(); - - update_output_manager_config(output->server); -} - static void update_textures(struct sway_container *con, void *data) { container_update_title_textures(con); container_update_marks_textures(con); @@ -953,10 +941,6 @@ static void handle_commit(struct wl_listener *listener, void *data) { struct sway_output *output = wl_container_of(listener, output, commit); struct wlr_output_event_commit *event = data; - if (event->committed & WLR_OUTPUT_STATE_MODE) { - handle_mode(output); - } - if (!output->enabled) { return; } @@ -966,7 +950,7 @@ static void handle_commit(struct wl_listener *listener, void *data) { output_for_each_surface(output, update_output_scale_iterator, NULL); } - if (event->committed & (WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_SCALE)) { + if (event->committed & (WLR_OUTPUT_STATE_MODE | WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_SCALE)) { arrange_layers(output); arrange_output(output); transaction_commit_dirty(); |