aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/layer_shell.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-22 23:34:26 -0500
committerLibravatar emersion <contact@emersion.fr>2019-02-23 09:15:35 +0100
commitbcec866c6b383cbba1e7294f011be64425a05ff7 (patch)
tree2145e9ad444c06497d8d3911eac80a49cd84b97b /sway/desktop/layer_shell.c
parentview: set xdg_decoration->view to NULL, check decoration destroy (diff)
downloadsway-bcec866c6b383cbba1e7294f011be64425a05ff7.tar.gz
sway-bcec866c6b383cbba1e7294f011be64425a05ff7.tar.zst
sway-bcec866c6b383cbba1e7294f011be64425a05ff7.zip
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.
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r--sway/desktop/layer_shell.c2
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) {
378 output = ws->output; 378 output = ws->output;
379 } 379 }
380 } 380 }
381 if (!output) { 381 if (!output || output == root->noop_output) {
382 if (!root->outputs->length) { 382 if (!root->outputs->length) {
383 sway_log(SWAY_ERROR, 383 sway_log(SWAY_ERROR,
384 "no output to auto-assign layer surface '%s' to", 384 "no output to auto-assign layer surface '%s' to",