mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 03:55:46 -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)
|
if (state.pointerFocus == surf)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (PROTO::data->dndActive()) {
|
if (PROTO::data->dndActive() && surf) {
|
||||||
if (state.dndPointerFocus == surf)
|
if (state.dndPointerFocus == surf)
|
||||||
return;
|
return;
|
||||||
Debug::log(LOG, "[seatmgr] Refusing pointer focus during an active dnd, but setting dndPointerFocus");
|
Debug::log(LOG, "[seatmgr] Refusing pointer focus during an active dnd, but setting dndPointerFocus");
|
||||||
|
Reference in New Issue
Block a user