mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 04:01:56 -07:00
@@ -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_) {
|
void CSeatManager::sendPointerButton(uint32_t timeMs, uint32_t key, wl_pointer_button_state state_) {
|
||||||
if (!state.pointerFocusResource)
|
if (!state.pointerFocusResource || PROTO::data->dndActive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (auto const& s : seatResources) {
|
for (auto const& s : seatResources) {
|
||||||
|
@@ -808,5 +808,5 @@ void CWLDataDeviceProtocol::renderDND(PHLMONITOR pMonitor, timespec* when) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool CWLDataDeviceProtocol::dndActive() {
|
bool CWLDataDeviceProtocol::dndActive() {
|
||||||
return dnd.currentSource && dnd.mouseButton /* test a member of the state to ensure it's also present */;
|
return dnd.currentSource;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user