mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 04:01:56 -07:00
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user