summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-01 15:15:55 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-01 15:15:55 +0100
commitd6b069458d990d372eaa9a35bb8726605b44a588 (patch)
treee47aef604bfcc19cbb2ae8fd3655cb53a35bef6f /src/managers/input/InputManager.cpp
parent3a631e40db78f98ab82bb600d7cf9d7428bc2b02 (diff)
input: don't refocus on dragging
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 4778ed3a..7f3f788c 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -337,6 +337,12 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
m_pFoundSurfaceToFocus = foundSurface;
}
+ if (currentlyDraggedWindow && pFoundWindow != currentlyDraggedWindow) {
+ wlr_seat_pointer_notify_enter(g_pCompositor->m_sSeat.seat, foundSurface, surfaceLocal.x, surfaceLocal.y);
+ wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, time, surfaceLocal.x, surfaceLocal.y);
+ return;
+ }
+
if (pFoundWindow) {
// change cursor icon if hovering over border
if (*PRESIZEONBORDER && *PRESIZECURSORICON) {