aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dock.c')
-rw-r--r--src/ui/dock.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/dock.c b/src/ui/dock.c
index 82f6728..c0931ba 100644
--- a/src/ui/dock.c
+++ b/src/ui/dock.c
@@ -153,3 +153,15 @@ void ui__dock_default_layout_proc(struct ui_window_base *base)
ui__call_layout_proc(child);
}
}
+
+struct ui_window_base *ui__dock_default_control_proc(struct ui_window_base *base, ui_control inp)
+{
+ struct ui_window_dock *dock = ui__cast(dock, base);
+ umps_unused(inp);
+
+ if (dock->focus != UI__WINDOW_FOCUS_NONE && dock->children[dock->focus]) {
+ return dock->children[dock->focus];
+ }
+
+ return NULL; /* no focus */
+}