diff options
author | Luminarys <kizunanohikari@gmail.com> | 2015-08-21 11:19:06 -0500 |
---|---|---|
committer | Luminarys <kizunanohikari@gmail.com> | 2015-08-21 11:19:06 -0500 |
commit | a8eab5492a091703b45364cf5cf625cddf396e24 (patch) | |
tree | f72bc376f6e06014c6d330586c51f74c81af581c /include | |
parent | Minor style fix (diff) | |
download | sway-a8eab5492a091703b45364cf5cf625cddf396e24.tar.gz sway-a8eab5492a091703b45364cf5cf625cddf396e24.tar.zst sway-a8eab5492a091703b45364cf5cf625cddf396e24.zip |
Added in proper resize locking
Diffstat (limited to 'include')
-rw-r--r-- | include/input_state.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/input_state.h b/include/input_state.h index 000996e0..04fde42d 100644 --- a/include/input_state.h +++ b/include/input_state.h | |||
@@ -37,13 +37,19 @@ extern struct pointer_state { | |||
37 | struct pointer_tiling { | 37 | struct pointer_tiling { |
38 | bool resize; | 38 | bool resize; |
39 | swayc_t *init_view; | 39 | swayc_t *init_view; |
40 | struct wlc_origin *lock_pos; | 40 | struct wlc_origin lock_pos; |
41 | } tiling; | 41 | } tiling; |
42 | struct pointer_lock { | 42 | struct pointer_lock { |
43 | // Lock movement for certain edges | ||
43 | bool left; | 44 | bool left; |
44 | bool right; | 45 | bool right; |
45 | bool top; | 46 | bool top; |
46 | bool bottom; | 47 | bool bottom; |
48 | // Lock movement in certain directions | ||
49 | bool temp_left; | ||
50 | bool temp_right; | ||
51 | bool temp_up; | ||
52 | bool temp_down; | ||
47 | } lock; | 53 | } lock; |
48 | } pointer_state; | 54 | } pointer_state; |
49 | 55 | ||