diff options
author | S. Christoffer Eliesen <[email protected]> | 2015-10-28 00:22:52 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <[email protected]> | 2015-10-29 16:37:19 +0100 |
commit | 865b30f13814beb798f49d6e2372cc44d8103b29 (patch) | |
tree | 7047b1bbfe38f581f46cc6a92a75320631e8ee35 /include/container.h | |
parent | ad1cd0a3bd2111041a38c920d1c10a5e5534b275 (diff) |
container: Move container_under_pointer here from handlers.
Diffstat (limited to 'include/container.h')
-rw-r--r-- | include/container.h | 4 |
1 files changed, 4 insertions, 0 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; #include "layout.h" +extern struct wlc_origin mouse_origin; + enum swayc_types{ C_ROOT, C_OUTPUT, @@ -98,6 +100,8 @@ swayc_t *swayc_by_name(const char *name); swayc_t *swayc_active_output(void); swayc_t *swayc_active_workspace(void); swayc_t *swayc_active_workspace_for(swayc_t *view); +// set focus to current pointer location and return focused container +swayc_t *container_under_pointer(void); // Container information |