sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit bcec866c6b383cbba1e7294f011be64425a05ff7
parent 3ead287064e8176520e7f15bf84fb179cbf1f1b1
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Fri, 22 Feb 2019 23:34:26 -0500

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:
Msway/desktop/layer_shell.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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",