diff options
| author | Junxuan Liao <70618504+MikeWalrus@users.noreply.github.com> | 2023-12-21 00:53:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-20 17:53:54 +0100 |
| commit | 53c78ab90676ebd8034950a7573137921f875177 (patch) | |
| tree | b117c9ea56ace7b9da8e03a0040aa1891413576b /src/managers/input/Tablets.cpp | |
| parent | b4f4bd38e8a0d9afd30231cf999e73548bef5760 (diff) | |
idle: notify idle on tablet inputs (#4201)
Fixes #4028.
Diffstat (limited to 'src/managers/input/Tablets.cpp')
| -rw-r--r-- | src/managers/input/Tablets.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/managers/input/Tablets.cpp b/src/managers/input/Tablets.cpp index 2c1681c1..959ce432 100644 --- a/src/managers/input/Tablets.cpp +++ b/src/managers/input/Tablets.cpp @@ -90,6 +90,8 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) { if (EVENT->updated_axes & (WLR_TABLET_TOOL_AXIS_TILT_X | WLR_TABLET_TOOL_AXIS_TILT_Y)) wlr_tablet_v2_tablet_tool_notify_tilt(PTOOL->wlrTabletToolV2, PTOOL->tiltX, PTOOL->tiltY); + + g_pCompositor->notifyIdleActivity(); }, PNEWTABLET, "Tablet"); @@ -109,6 +111,8 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) { } else { wlr_send_tablet_v2_tablet_tool_up(PTOOL->wlrTabletToolV2); } + + g_pCompositor->notifyIdleActivity(); }, PNEWTABLET, "Tablet"); @@ -120,6 +124,7 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) { const auto PTOOL = g_pInputManager->ensureTabletToolPresent(EVENT->tool); wlr_tablet_v2_tablet_tool_notify_button(PTOOL->wlrTabletToolV2, (zwp_tablet_pad_v2_button_state)EVENT->button, (zwp_tablet_pad_v2_button_state)EVENT->state); + g_pCompositor->notifyIdleActivity(); }, PNEWTABLET, "Tablet"); @@ -144,6 +149,8 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) { g_pInputManager->refocus(); g_pInputManager->focusTablet(PTAB, EVENT->tool); } + + g_pCompositor->notifyIdleActivity(); }, PNEWTABLET, "Tablet"); |
