allow binding tablets to outputs

This commit is contained in:
vaxerski
2022-12-21 15:11:39 +00:00
parent fc37ce4a72
commit 41cdfb7420
6 changed files with 33 additions and 4 deletions

View File

@@ -137,6 +137,8 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) {
}
},
PNEWTABLET, "Tablet");
setTabletConfigs();
}
STabletTool* CInputManager::ensureTabletToolPresent(wlr_tablet_tool* pTool) {
@@ -176,6 +178,7 @@ void CInputManager::newTabletPad(wlr_input_device* pDevice) {
}
PNEWPAD->wlrTabletPadV2 = wlr_tablet_pad_create(g_pCompositor->m_sWLRTabletManager, g_pCompositor->m_sSeat.seat, pDevice);
PNEWPAD->pWlrDevice = pDevice;
PNEWPAD->hyprListener_Button.initCallback(
&wlr_tablet_pad_from_input_device(pDevice)->events.button,