datadevice: do the unfocus surface stuff before dndActive is true (#9157)

This commit is contained in:
Maximilian Seidler 2025-01-24 15:50:15 +00:00 committed by GitHub
parent 57a39984dd
commit 0e5d03a557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");