mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-31 20:03:48 -07:00
de-focusify on lost proximity
This commit is contained in:
@@ -112,6 +112,12 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) {
|
|||||||
|
|
||||||
if (EVENT->state == WLR_TABLET_TOOL_PROXIMITY_OUT) {
|
if (EVENT->state == WLR_TABLET_TOOL_PROXIMITY_OUT) {
|
||||||
PTOOL->active = false;
|
PTOOL->active = false;
|
||||||
|
|
||||||
|
if (PTOOL->pSurface) {
|
||||||
|
wlr_tablet_v2_tablet_tool_notify_proximity_out(PTOOL->wlrTabletToolV2);
|
||||||
|
PTOOL->pSurface = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
PTOOL->active = true;
|
PTOOL->active = true;
|
||||||
g_pInputManager->refocus();
|
g_pInputManager->refocus();
|
||||||
|
Reference in New Issue
Block a user