mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 14:29:47 +01:00
parent
42fd366046
commit
94381e5999
2 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ void CSeatManager::sendPointerMotion(uint32_t timeMs, const Vector2D& local) {
|
|||
}
|
||||
|
||||
void CSeatManager::sendPointerButton(uint32_t timeMs, uint32_t key, wl_pointer_button_state state_) {
|
||||
if (!state.pointerFocusResource)
|
||||
if (!state.pointerFocusResource || PROTO::data->dndActive())
|
||||
return;
|
||||
|
||||
for (auto const& s : seatResources) {
|
||||
|
|
|
@ -808,5 +808,5 @@ void CWLDataDeviceProtocol::renderDND(PHLMONITOR pMonitor, timespec* when) {
|
|||
}
|
||||
|
||||
bool CWLDataDeviceProtocol::dndActive() {
|
||||
return dnd.currentSource && dnd.mouseButton /* test a member of the state to ensure it's also present */;
|
||||
return dnd.currentSource;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue