Skip to content

Commit

Permalink
tree/output: Rely on modeset arranging root
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kennylevinsen authored and Nefsen402 committed Sep 4, 2024
1 parent b83e5aa commit 6045ad9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sway/tree/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6045ad9

Please sign in to comment.