aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-21 12:23:53 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-21 12:23:53 -0400
commit1c38b7a8d228585018651741ce748c4b0d6c8d0e (patch)
treeebbb4c441b45e5ea6aadef51c0a995f99b169be4 /include
parent034358dbfd07e013417bafcbcc819ddad90a2f21 (diff)
parenta8eab5492a091703b45364cf5cf625cddf396e24 (diff)
downloadsway-1c38b7a8d228585018651741ce748c4b0d6c8d0e.tar.xz
Merge pull request #111 from Luminarys/master
Added in proper resize locking
Diffstat (limited to 'include')
-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;