datadevice: do the unfocus surface stuff before dndActive is true (#9157)
This commit is contained in:
parent
57a39984dd
commit
0e5d03a557
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue