aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuminarys <kizunanohikari@gmail.com>2015-08-21 22:26:11 -0500
committerLuminarys <kizunanohikari@gmail.com>2015-08-21 22:26:11 -0500
commitf6b16ca089753beb4f7425fce195321e3073fb02 (patch)
tree09c43c1ddba542b6c7e5c2718f706916df313b2d /include
parentad1ca31dd5a36736176002ec7b7c9548cd63113d (diff)
downloadsway-f6b16ca089753beb4f7425fce195321e3073fb02.tar.xz
Refactored resizing functions into resize.c
Diffstat (limited to 'include')
-rw-r--r--include/handlers.h1
-rw-r--r--include/layout.h3
-rw-r--r--include/resize.h8
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 @@
#include <wlc/wlc.h>
extern struct wlc_interface interface;
+extern struct wlc_origin mouse_origin;
extern uint32_t keys_pressed[32];
// 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 @@
extern swayc_t root_container;
+extern int min_sane_w;
+extern int min_sane_h;
+
void init_layout(void);
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 @@
+#ifndef _SWAY_RESIZE_H
+#define _SWAY_RESIZE_H
+
+bool mouse_resize_tiled(struct wlc_origin prev_pos);
+bool resize_floating(struct wlc_origin prev_pos);
+bool resize_tiled(int amount, bool use_width);
+
+#endif