diff options
author | 2015-10-29 17:52:16 -0400 | |
---|---|---|
committer | 2015-10-29 17:52:16 -0400 | |
commit | ca5a2a387c97914d97929b09113359c45ba23279 (patch) | |
tree | c702c4a176e4e78b295c14c6d457296fcf094527 /include/input_state.h | |
parent | Merge pull request #211 from sce/fix_get_swayc_in_direction (diff) | |
parent | container.h: Remove unused. (diff) | |
download | sway-ca5a2a387c97914d97929b09113359c45ba23279.tar.gz sway-ca5a2a387c97914d97929b09113359c45ba23279.tar.zst sway-ca5a2a387c97914d97929b09113359c45ba23279.zip |
Merge pull request #212 from sce/mouse_warping
Learn mouse_warping
Diffstat (limited to 'include/input_state.h')
-rw-r--r-- | include/input_state.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/input_state.h b/include/input_state.h index d87ae18c..a1f238e1 100644 --- a/include/input_state.h +++ b/include/input_state.h | |||
@@ -48,11 +48,6 @@ extern struct pointer_state { | |||
48 | struct pointer_button_state right; | 48 | struct pointer_button_state right; |
49 | struct pointer_button_state scroll; | 49 | struct pointer_button_state scroll; |
50 | 50 | ||
51 | // pointer position | ||
52 | struct mouse_origin{ | ||
53 | int x, y; | ||
54 | } origin; | ||
55 | |||
56 | // change in pointer position | 51 | // change in pointer position |
57 | struct { | 52 | struct { |
58 | int x, y; | 53 | int x, y; |
@@ -65,6 +60,9 @@ extern struct pointer_state { | |||
65 | int mode; | 60 | int mode; |
66 | } pointer_state; | 61 | } pointer_state; |
67 | 62 | ||
63 | void pointer_position_set(struct wlc_origin *new_origin, bool force_focus); | ||
64 | void center_pointer_on(swayc_t *view); | ||
65 | |||
68 | // on button release unset mode depending on the button. | 66 | // on button release unset mode depending on the button. |
69 | // on button press set mode conditionally depending on the button | 67 | // on button press set mode conditionally depending on the button |
70 | void pointer_mode_set(uint32_t button, bool condition); | 68 | void pointer_mode_set(uint32_t button, bool condition); |