diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-02-22 23:34:26 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-02-22 23:34:26 -0500 |
| commit | af30630bfca2bb6a71b7f2d67ff07f44435a7ccc (patch) | |
| tree | 2145e9ad444c06497d8d3911eac80a49cd84b97b | |
| parent | dd8710733dd72c524658a9d323187fe31027703a (diff) | |
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.
| -rw-r--r-- | sway/desktop/layer_shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 0767247c..b2fea880 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -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", |
