sway

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

commit 247817f68c69c8f4533d948502ae300520dcad59
parent 81e595e6e8b2776aa4b4fc44c72baaab69cc0a9b
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Wed, 16 Jan 2019 00:44:24 -0500

layer_shell: do not SIGABRT sway on zero outputs

If there are no outputs, do not SIGABRT when a layer surface is created,
just close the layer surface.

Diffstat:
Msway/desktop/layer_shell.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c @@ -379,8 +379,10 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) { } } if (!output) { - if (!sway_assert(root->outputs->length, - "cannot auto-assign output for layer")) { + if (!root->outputs->length) { + wlr_log(WLR_ERROR, + "no output to auto-assign layer surface '%s' to", + layer_surface->namespace); wlr_layer_surface_v1_close(layer_surface); return; }