summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 21:59:14 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 21:59:14 +0100
commit118006e8766a56b6fadff2c66d659dbba9ae200f (patch)
treeeb46ae783600ea36389f1246e4e90f2db01fda97 /src/Compositor.cpp
parent2bc29f32ec087f8577ff1fd6bb031ea47b133057 (diff)
fixed layersurface coord mapping
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 953ae1c8..d7b7df4a 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -467,5 +467,5 @@ void CCompositor::fixXWaylandWindowsOnWorkspace(const int& id) {
}
bool CCompositor::doesSeatAcceptInput(wlr_surface* surface) {
- return !m_sSeat.exclusiveClient || m_sSeat.exclusiveClient == wl_resource_get_client(surface->resource);
+ return !m_sSeat.exclusiveClient || (surface && m_sSeat.exclusiveClient == wl_resource_get_client(surface->resource));
} \ No newline at end of file