From fbc78534599f3129b11899795ba3d099eae4c5fd Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 9 Jun 2022 21:19:31 +0200 Subject: de-focusify on lost proximity --- src/managers/input/Tablets.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- cgit v1.2.3