mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Prevent a layer shell infinite looping case
This commit try to fix a case we encounter when running swayout, a layer shell to display text above the background. When running wayout, other layer shell start to consume 100% of the CPU. This seems related to a previous fix744e85b. Then later, another commit reworks this handle_surface_commit method5fd5d643. This is a tentative to fix the issue without missing the points of those patches. We basically try to not re-arrange layers if no layer changed.
This commit is contained in:
parent
4732325f59
commit
c00746c111
1 changed files with 1 additions and 1 deletions
|
|
@ -308,8 +308,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
|
|||
wl_list_insert(&output->layers[layer_surface->current.layer],
|
||||
&layer->link);
|
||||
layer->layer = layer_surface->current.layer;
|
||||
arrange_layers(output);
|
||||
}
|
||||
arrange_layers(output);
|
||||
}
|
||||
|
||||
wlr_surface_get_extends(layer_surface->surface, &layer->extent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue