diff options
| author | 2023-11-25 03:38:40 -0600 | |
|---|---|---|
| committer | 2023-11-25 03:38:40 -0600 | |
| commit | 1c9d93cce891d768a75ae1a075ca6e3155a12c73 (patch) | |
| tree | 8b18a43c48a75f67e88ddd0b3b918e4c6080e043 /src/ui/dock.c | |
| parent | make debug code worse-looking (but more verbose) (diff) | |
add key handling and some other stuff
Diffstat (limited to 'src/ui/dock.c')
| -rw-r--r-- | src/ui/dock.c | 12 |
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 */ +} |
