mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 20:25:59 +01:00
de-focusify on lost proximity
This commit is contained in:
parent
53146ccf69
commit
fbc7853459
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue