fix: update selmon on tablet tool motion

This commit is contained in:
werapi 2026-03-20 09:41:46 +01:00
parent 95544b82b2
commit 8d3613ac54

View file

@ -259,6 +259,9 @@ void tablettoolmotion(struct TabletTool *tool, bool change_x, bool change_y,
motionnotify(0, NULL, 0, 0, 0, 0); motionnotify(0, NULL, 0, 0, 0, 0);
if (config.sloppyfocus)
selmon = xytomon(cursor->x, cursor->y);
xytonode(cursor->x, cursor->y, &surface, &c, NULL, &sx, &sy); xytonode(cursor->x, cursor->y, &surface, &c, NULL, &sx, &sy);
if (cursor_mode == CurPressed && !seat->drag && if (cursor_mode == CurPressed && !seat->drag &&
surface != seat->pointer_state.focused_surface && surface != seat->pointer_state.focused_surface &&