diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-21 12:23:53 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-21 12:23:53 -0400 |
commit | 1c38b7a8d228585018651741ce748c4b0d6c8d0e (patch) | |
tree | ebbb4c441b45e5ea6aadef51c0a995f99b169be4 /include | |
parent | Merge pull request #110 from minus7/sign-comparsion-fix (diff) | |
parent | Added in proper resize locking (diff) | |
download | sway-1c38b7a8d228585018651741ce748c4b0d6c8d0e.tar.gz sway-1c38b7a8d228585018651741ce748c4b0d6c8d0e.tar.zst sway-1c38b7a8d228585018651741ce748c4b0d6c8d0e.zip |
Merge pull request #111 from Luminarys/master
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 | ||