From 48f51bbeb69f9a1cc05d5aee182acaa826e34f49 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 2 May 2020 15:51:16 +0200 Subject: Handle unmap on never-mapped layer surface I don't think wlroots should be sending this, but we shouldn't crash either. Fixes https://github.com/ifreund/river/issues/19 --- src/output.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/output.zig') diff --git a/src/output.zig b/src/output.zig index 5530b77..e3db173 100644 --- a/src/output.zig +++ b/src/output.zig @@ -347,7 +347,7 @@ pub const Output = struct { // If the value of exclusive_zone is greater than zero, then it exclusivly // occupies some area of the screen. - if (exclusive != (current_state.exclusive_zone > 0)) { + if (!layer_surface.mapped or exclusive != (current_state.exclusive_zone > 0)) { continue; } -- cgit v1.2.3