Skip to content

Commit

Permalink
datadevice: do the unfocus surface stuff before dndActive is true (#9157
Browse files Browse the repository at this point in the history
)
  • Loading branch information
PaideiaDilemma authored Jan 24, 2025
1 parent 57a3998 commit 0e5d03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/SeatManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0e5d03a

Please sign in to comment.