aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-02-28 19:37:00 +0000
committervaxerski <[email protected]>2023-02-28 19:37:00 +0000
commit91fd854e3be1d798607d398596acce470bd9a8e2 (patch)
tree385dec6f601d85119f4da8e7ed7b1e3b9e9e4663 /src/events
parent4b20d4f1add40130653b9a3f2351eb44e0e0df4b (diff)
downloadHyprland-91fd854e3be1d798607d398596acce470bd9a8e2.tar.gz
Hyprland-91fd854e3be1d798607d398596acce470bd9a8e2.zip
fix warn
Diffstat (limited to 'src/events')
-rw-r--r--src/events/Devices.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp
index ddb9365a..5b1d6e4e 100644
--- a/src/events/Devices.cpp
+++ b/src/events/Devices.cpp
@@ -109,10 +109,8 @@ void Events::listener_newConstraint(wl_listener* listener, void* data) {
if (g_pCompositor->m_pLastFocus == PCONSTRAINT->surface) {
g_pInputManager->constrainMouse(CONSTRAINT->pMouse, PCONSTRAINT);
- if (!CONSTRAINT->hintSet) {
- const auto PWINDOW = g_pCompositor->getConstraintWindow(g_pCompositor->m_sSeat.mouse);
+ if (!CONSTRAINT->hintSet)
CONSTRAINT->positionHint = Vector2D{-1, -1};
- }
}
}