summaryrefslogtreecommitdiffstats
path: root/include/focus.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
commit416417a54c5875abcdc257b6ad10ff086c35eefc (patch)
tree00f20884a05d05e620a4a24bba8595557cd41405 /include/focus.h
parentMerge pull request #876 from zandrmartin/patch-1 (diff)
downloadsway-416417a54c5875abcdc257b6ad10ff086c35eefc.tar.gz
sway-416417a54c5875abcdc257b6ad10ff086c35eefc.tar.zst
sway-416417a54c5875abcdc257b6ad10ff086c35eefc.zip
Reorganize includes
Diffstat (limited to 'include/focus.h')
-rw-r--r--include/focus.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/include/focus.h b/include/focus.h
deleted file mode 100644
index b532edc2..00000000
--- a/include/focus.h
+++ /dev/null
@@ -1,43 +0,0 @@
1#ifndef _SWAY_FOCUS_H
2#define _SWAY_FOCUS_H
3enum movement_direction {
4 MOVE_LEFT,
5 MOVE_RIGHT,
6 MOVE_UP,
7 MOVE_DOWN,
8 MOVE_PARENT,
9 MOVE_CHILD
10};
11
12#include "container.h"
13
14// focused_container - the container found by following the `focused` pointer
15// from a given container to a container with `is_focused` boolean set
16// ---
17// focused_view - the container found by following the `focused` pointer from a
18// given container to a view.
19// ---
20
21swayc_t *get_focused_container(swayc_t *parent);
22swayc_t *get_focused_view(swayc_t *parent);
23swayc_t *get_focused_float(swayc_t *ws);
24
25// a special-case function to get the focused view, regardless
26// of whether it's tiled or floating
27swayc_t *get_focused_view_include_floating(swayc_t *parent);
28
29bool set_focused_container(swayc_t *container);
30bool set_focused_container_for(swayc_t *ancestor, swayc_t *container);
31
32// lock focused container/view. locked by windows with OVERRIDE attribute
33// and unlocked when they are destroyed
34
35extern bool locked_container_focus;
36
37// Prevents wss from being destroyed on focus switch
38extern bool suspend_workspace_cleanup;
39
40bool move_focus(enum movement_direction direction);
41
42#endif
43