tSave cursor position for teleport - glazier - window management experiments
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 170adc9db2caeeacfaded81d7892d9bdc245ec69
(DIR) parent f5dbc7a917771c8988277a2368d14f7efcd73be0
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Sat, 26 Oct 2019 20:28:15 +0200
Save cursor position for teleport
Diffstat:
M glazier.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/glazier.c b/glazier.c
t@@ -281,6 +281,8 @@ cb_mouse_press(xcb_generic_event_t *ev)
wm_reg_cursor_event(scrn->root, mask, xhair[XHAIR_MOVE]);
break;
case 2:
+ cursor.x = e->root_x;
+ cursor.y = e->root_y;
wm_reg_cursor_event(scrn->root, mask, xhair[XHAIR_TELE]);
break;
case 3: