diff options
| author | Kenny Levinsen <kl@kl.wtf> | 2024-09-03 15:36:47 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2024-09-21 16:16:56 +0200 |
| commit | fa96c64e24eac2f30cdc4feed828600d9de75dd6 (patch) | |
| tree | d0e36bf69b9cd991a7e87b0df542f7adfa06b82c | |
| parent | 2f1db190c65b8c495ac00db2593f6776635574e7 (diff) | |
tree/output: Rely on modeset arranging root
output_enable/output_disable are only called from modeset, and from
output destroy which requests modeset. As such, they can rely on the
modeset handling arrange.
(cherry picked from 6045ad9a0224ea2aab2d488cd356b5557007f5d1)
| -rw-r--r-- | sway/tree/output.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c index 6c8dd6dc..f3b0b27a 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c @@ -183,9 +183,6 @@ void output_enable(struct sway_output *output) { input_manager_configure_xcursor(); wl_signal_emit_mutable(&root->events.new_node, &output->node); - - arrange_layers(output); - arrange_root(); } static void evacuate_sticky(struct sway_workspace *old_ws, @@ -300,13 +297,6 @@ void output_disable(struct sway_output *output) { list_del(root->outputs, index); output->enabled = false; - - arrange_root(); - - // Reconfigure all devices, since devices with map_to_output directives for - // an output that goes offline should stop sending events as long as the - // output remains offline. - input_manager_configure_all_input_mappings(); } void output_begin_destroy(struct sway_output *output) { |
