summaryrefslogtreecommitdiff
path: root/src/managers/SeatManager.cpp
diff options
context:
space:
mode:
authorMaximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com>2025-01-24 15:50:15 +0000
committerGitHub <noreply@github.com>2025-01-24 16:50:15 +0100
commit0e5d03a5574efb78f06f2723b345bac867d98696 (patch)
treec914d568a4a37c7ae09e761b5cca75c73ea8106b /src/managers/SeatManager.cpp
parent57a39984dddd00fd1aca436e149b7566e5e48d95 (diff)
datadevice: do the unfocus surface stuff before dndActive is true (#9157)
Diffstat (limited to 'src/managers/SeatManager.cpp')
-rw-r--r--src/managers/SeatManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/SeatManager.cpp b/src/managers/SeatManager.cpp
index 8fee6b16..6d2b906f 100644
--- a/src/managers/SeatManager.cpp
+++ b/src/managers/SeatManager.cpp
@@ -194,7 +194,7 @@ void CSeatManager::setPointerFocus(SP<CWLSurfaceResource> surf, const Vector2D&
if (state.pointerFocus == surf)
return;
- if (PROTO::data->dndActive()) {
+ if (PROTO::data->dndActive() && surf) {
if (state.dndPointerFocus == surf)
return;
Debug::log(LOG, "[seatmgr] Refusing pointer focus during an active dnd, but setting dndPointerFocus");