mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
chore: check bottom layershell as well
This commit is contained in:
parent
77343fde2b
commit
9122372efb
1 changed files with 5 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ static struct sway_layer_surface *find_layer_by_surface(
|
|||
struct wlr_layer_surface_v1 *layer) {
|
||||
for (int i = 0; i < root->outputs->length; ++i) {
|
||||
struct sway_output *output = root->outputs->items[i];
|
||||
// For now we'll only check the overlay and top layer
|
||||
// For now we'll only check the overlay, top layer and bottom layer
|
||||
struct sway_layer_surface *surface;
|
||||
surface = loop_layer_surface(output->layers.shell_top->children, layer);
|
||||
if (surface != NULL) {
|
||||
|
|
@ -298,6 +298,10 @@ static struct sway_layer_surface *find_layer_by_surface(
|
|||
if (surface != NULL) {
|
||||
return surface;
|
||||
}
|
||||
surface = loop_layer_surface(output->layers.shell_bottom->children, layer);
|
||||
if (surface != NULL) {
|
||||
return surface;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue