diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-26 12:20:32 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-29 17:41:33 +0100 |
commit | 78ca6197697d4f07eddf0c544daff85603adab90 (patch) | |
tree | e499ab901ab3371d5860e36db086ea8b46e8227e /include/input_state.h | |
parent | input_state: Extract 'pointer_position_set' function from handlers. (diff) | |
download | sway-78ca6197697d4f07eddf0c544daff85603adab90.tar.gz sway-78ca6197697d4f07eddf0c544daff85603adab90.tar.zst sway-78ca6197697d4f07eddf0c544daff85603adab90.zip |
commands: Learn mouse_warping.
Place mouse at center of focused view when changing to a workspace on a
different output, if option is enabled. (This replicates existing i3
option.)
This can be triggered in multiple ways:
A) via `workspace <name>` which changes output
B) via `focus <direction>` which changes output
C) via `focus output <name>` which (obviously) changes output
Diffstat (limited to 'include/input_state.h')
-rw-r--r-- | include/input_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/input_state.h b/include/input_state.h index dd5d71a8..52759052 100644 --- a/include/input_state.h +++ b/include/input_state.h | |||
@@ -66,6 +66,7 @@ extern struct pointer_state { | |||
66 | } pointer_state; | 66 | } pointer_state; |
67 | 67 | ||
68 | void pointer_position_set(struct wlc_origin *new_origin, bool force_focus); | 68 | void pointer_position_set(struct wlc_origin *new_origin, bool force_focus); |
69 | void center_pointer_on(swayc_t *view); | ||
69 | 70 | ||
70 | // on button release unset mode depending on the button. | 71 | // on button release unset mode depending on the button. |
71 | // on button press set mode conditionally depending on the button | 72 | // on button press set mode conditionally depending on the button |