summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorZandr Martin <[email protected]>2016-09-17 15:54:45 -0500
committerZandr Martin <[email protected]>2016-09-17 15:54:45 -0500
commite18b7cdfa920d536e4911a7ccbc2d6da5ae759f4 (patch)
tree8d64bd01413c08c5250085e8666cb4bef75efc97 /sway/layout.c
parent75f82808e2e5e4950d436ff6d30a58ac9fabd599 (diff)
add global `current_focus` pointer
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 2d29340e..7802c412 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -15,6 +15,7 @@
#include "log.h"
swayc_t root_container;
+swayc_t *current_focus;
list_t *scratchpad;
int min_sane_h = 60;
@@ -27,6 +28,7 @@ void init_layout(void) {
root_container.children = create_list();
root_container.handle = -1;
root_container.visible = true;
+ current_focus = &root_container;
scratchpad = create_list();
}