aboutsummaryrefslogtreecommitdiff
path: root/include/input_state.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2015-08-21 11:19:06 -0500
committerFurkan Sahin <furkan-dev@proton.me>2015-08-21 11:19:06 -0500
commit1b1023a962fa98dd2b5b36187d8168c4aa2dc927 (patch)
treef72bc376f6e06014c6d330586c51f74c81af581c /include/input_state.h
parent77bc19d1fc877cbfa6d0ddaa549700e87a40e066 (diff)
Added in proper resize locking
Diffstat (limited to 'include/input_state.h')
-rw-r--r--include/input_state.h8
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 {
struct pointer_tiling {
bool resize;
swayc_t *init_view;
- struct wlc_origin *lock_pos;
+ struct wlc_origin lock_pos;
} tiling;
struct pointer_lock {
+ // Lock movement for certain edges
bool left;
bool right;
bool top;
bool bottom;
+ // Lock movement in certain directions
+ bool temp_left;
+ bool temp_right;
+ bool temp_up;
+ bool temp_down;
} lock;
} pointer_state;