mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Added in proper resize locking
This commit is contained in:
parent
7ecb55f218
commit
a8eab5492a
3 changed files with 69 additions and 17 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue