aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-02-22 23:34:26 -0500
committerDrew DeVault <sir@cmpwn.com>2019-02-25 17:10:04 -0500
commitfeeaa9486cee989fddb5b4d8a0bc352fccc84154 (patch)
treed6c1d31ea7206a78a57245d6b1f57766296dc350
parentb474050d7b22c9dfa425affa2c4aff551dc96a71 (diff)
downloadsway-feeaa9486cee989fddb5b4d8a0bc352fccc84154.zip
sway-feeaa9486cee989fddb5b4d8a0bc352fccc84154.tar.gz
sway-feeaa9486cee989fddb5b4d8a0bc352fccc84154.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index 0767247..b2fea88 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",