mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
datadevice: do the unfocus surface stuff before dndActive is true (#9157)
This commit is contained in:
committed by
GitHub
parent
57a39984dd
commit
0e5d03a557
@@ -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");
|
||||
|
Reference in New Issue
Block a user