aboutsummaryrefslogtreecommitdiff
path: root/src/output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-05-02 15:51:16 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-05-02 15:51:16 +0200
commit48f51bbeb69f9a1cc05d5aee182acaa826e34f49 (patch)
treea2b8f18e48487d7bd0a9aad8a046e10c24dbac1a /src/output.zig
parent490e79eed41d28c2e6fb03cfe72605ac47d6633f (diff)
downloadriver-48f51bbeb69f9a1cc05d5aee182acaa826e34f49.tar.gz
river-48f51bbeb69f9a1cc05d5aee182acaa826e34f49.tar.xz
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
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig2
1 files changed, 1 insertions, 1 deletions
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;
}