aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/layer_shell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index cabb07f5..ab05778d 100644
--- 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;
}