mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
handle_layer_shell_surface: do not use noop output
If the noop output is focused (all other outputs disabled/disconnected), do not auto assign a layer surface to it. The noop output is not enabled and does not have the `output->layers` list initialized. It also does not make sense to map the layer surfaces to something that is not visible.
This commit is contained in:
parent
3ead287064
commit
bcec866c6b
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
|
|||
output = ws->output;
|
||||
}
|
||||
}
|
||||
if (!output) {
|
||||
if (!output || output == root->noop_output) {
|
||||
if (!root->outputs->length) {
|
||||
sway_log(SWAY_ERROR,
|
||||
"no output to auto-assign layer surface '%s' to",
|
||||
|
|
Loading…
Reference in a new issue