summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-28 00:22:52 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-29 16:37:19 +0100
commit865b30f13814beb798f49d6e2372cc44d8103b29 (patch)
tree7047b1bbfe38f581f46cc6a92a75320631e8ee35 /include
parentMerge pull request #211 from sce/fix_get_swayc_in_direction (diff)
downloadsway-865b30f13814beb798f49d6e2372cc44d8103b29.tar.gz
sway-865b30f13814beb798f49d6e2372cc44d8103b29.tar.zst
sway-865b30f13814beb798f49d6e2372cc44d8103b29.zip
container: Move container_under_pointer here from handlers.
Diffstat (limited to 'include')
-rw-r--r--include/container.h4
-rw-r--r--include/handlers.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/container.h b/include/container.h
index ae9a9fc5..e1ecca92 100644
--- a/include/container.h
+++ b/include/container.h
@@ -5,6 +5,8 @@ typedef struct sway_container swayc_t;
5 5
6#include "layout.h" 6#include "layout.h"
7 7
8extern struct wlc_origin mouse_origin;
9
8enum swayc_types{ 10enum swayc_types{
9 C_ROOT, 11 C_ROOT,
10 C_OUTPUT, 12 C_OUTPUT,
@@ -98,6 +100,8 @@ swayc_t *swayc_by_name(const char *name);
98swayc_t *swayc_active_output(void); 100swayc_t *swayc_active_output(void);
99swayc_t *swayc_active_workspace(void); 101swayc_t *swayc_active_workspace(void);
100swayc_t *swayc_active_workspace_for(swayc_t *view); 102swayc_t *swayc_active_workspace_for(swayc_t *view);
103// set focus to current pointer location and return focused container
104swayc_t *container_under_pointer(void);
101 105
102// Container information 106// Container information
103 107
diff --git a/include/handlers.h b/include/handlers.h
index 4c71f953..d7f6ffdd 100644
--- a/include/handlers.h
+++ b/include/handlers.h
@@ -5,10 +5,6 @@
5#include <wlc/wlc.h> 5#include <wlc/wlc.h>
6 6
7extern struct wlc_interface interface; 7extern struct wlc_interface interface;
8extern struct wlc_origin mouse_origin;
9extern uint32_t keys_pressed[32]; 8extern uint32_t keys_pressed[32];
10 9
11// set focus to current pointer location and return focused container
12swayc_t *container_under_pointer(void);
13
14#endif 10#endif