mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix: update selmon on tablet tool motion
This commit is contained in:
parent
95544b82b2
commit
8d3613ac54
1 changed files with 3 additions and 0 deletions
|
|
@ -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 &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue