mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-24 06:09:49 +01:00
tablet: send motion
s on tip events (#9132)
Typically, the position of the tool tip also changes on tool tip events, so we should forward this update to the clients.
This commit is contained in:
parent
ecae3c5e4b
commit
ae4e38d9d5
1 changed files with 5 additions and 4 deletions
|
@ -159,12 +159,13 @@ void CInputManager::onTabletAxis(CTablet::SAxisEvent e) {
|
|||
void CInputManager::onTabletTip(CTablet::STipEvent e) {
|
||||
const auto PTAB = e.tablet;
|
||||
const auto PTOOL = ensureTabletToolPresent(e.tool);
|
||||
const auto POS = e.tip;
|
||||
g_pPointerManager->warpAbsolute(POS, PTAB);
|
||||
refocusTablet(PTAB, PTOOL, true);
|
||||
|
||||
if (e.in) {
|
||||
simulateMouseMovement();
|
||||
refocusTablet(PTAB, PTOOL);
|
||||
if (e.in)
|
||||
PROTO::tablet->down(PTOOL);
|
||||
} else
|
||||
else
|
||||
PROTO::tablet->up(PTOOL);
|
||||
|
||||
PTOOL->isDown = e.in;
|
||||
|
|
Loading…
Reference in a new issue