aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-06-09 21:19:31 +0200
committervaxerski <[email protected]>2022-06-09 21:39:03 +0200
commitfbc78534599f3129b11899795ba3d099eae4c5fd (patch)
treebe6586699337ca033477c3e3861060fc30472dbb
parent53146ccf69a53850f8ad2af85f0ccf6e1143b878 (diff)
downloadHyprland-fbc78534599f3129b11899795ba3d099eae4c5fd.tar.gz
Hyprland-fbc78534599f3129b11899795ba3d099eae4c5fd.zip
de-focusify on lost proximitytablets
-rw-r--r--src/managers/input/Tablets.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/managers/input/Tablets.cpp b/src/managers/input/Tablets.cpp
index d21ef518..3977fc94 100644
--- a/src/managers/input/Tablets.cpp
+++ b/src/managers/input/Tablets.cpp
@@ -112,6 +112,12 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) {
if (EVENT->state == WLR_TABLET_TOOL_PROXIMITY_OUT) {
PTOOL->active = false;
+
+ if (PTOOL->pSurface) {
+ wlr_tablet_v2_tablet_tool_notify_proximity_out(PTOOL->wlrTabletToolV2);
+ PTOOL->pSurface = nullptr;
+ }
+
} else {
PTOOL->active = true;
g_pInputManager->refocus();