diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-22 09:03:43 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-22 09:03:43 -0400 |
commit | ade634bb04027a6ea5f053330e044638f135c147 (patch) | |
tree | b446198afb8d5ea2d9e32e5953c9e1d4cf445485 /include | |
parent | Merge pull request #117 from Luminarys/master (diff) | |
parent | Added in bspwm like view swapping (diff) | |
download | sway-ade634bb04027a6ea5f053330e044638f135c147.tar.gz sway-ade634bb04027a6ea5f053330e044638f135c147.tar.zst sway-ade634bb04027a6ea5f053330e044638f135c147.zip |
Merge pull request #118 from Luminarys/master
Refactored resizing functions into resize.c
Diffstat (limited to 'include')
-rw-r--r-- | include/handlers.h | 1 | ||||
-rw-r--r-- | include/layout.h | 3 | ||||
-rw-r--r-- | include/resize.h | 8 |
3 files changed, 12 insertions, 0 deletions
diff --git a/include/handlers.h b/include/handlers.h index c25c3309..4c71f953 100644 --- a/include/handlers.h +++ b/include/handlers.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <wlc/wlc.h> | 5 | #include <wlc/wlc.h> |
6 | 6 | ||
7 | extern struct wlc_interface interface; | 7 | extern struct wlc_interface interface; |
8 | extern struct wlc_origin mouse_origin; | ||
8 | extern uint32_t keys_pressed[32]; | 9 | extern uint32_t keys_pressed[32]; |
9 | 10 | ||
10 | // set focus to current pointer location and return focused container | 11 | // set focus to current pointer location and return focused container |
diff --git a/include/layout.h b/include/layout.h index 7b8829ed..f8aebe0a 100644 --- a/include/layout.h +++ b/include/layout.h | |||
@@ -8,6 +8,9 @@ | |||
8 | 8 | ||
9 | extern swayc_t root_container; | 9 | extern swayc_t root_container; |
10 | 10 | ||
11 | extern int min_sane_w; | ||
12 | extern int min_sane_h; | ||
13 | |||
11 | void init_layout(void); | 14 | void init_layout(void); |
12 | 15 | ||
13 | void add_child(swayc_t *parent, swayc_t *child); | 16 | void add_child(swayc_t *parent, swayc_t *child); |
diff --git a/include/resize.h b/include/resize.h new file mode 100644 index 00000000..4ace1815 --- /dev/null +++ b/include/resize.h | |||
@@ -0,0 +1,8 @@ | |||
1 | #ifndef _SWAY_RESIZE_H | ||
2 | #define _SWAY_RESIZE_H | ||
3 | |||
4 | bool mouse_resize_tiled(struct wlc_origin prev_pos); | ||
5 | bool resize_floating(struct wlc_origin prev_pos); | ||
6 | bool resize_tiled(int amount, bool use_width); | ||
7 | |||
8 | #endif | ||