From 87b5dbd9c0393e787d2499d796486d3293f17214 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 28 Apr 2021 17:48:38 +0300 Subject: Working on multiple UI roots Root focus switching and opening links in the other root. --- src/ui/root.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/root.c') diff --git a/src/ui/root.c b/src/ui/root.c index 8faeb215..aec5f26f 100644 --- a/src/ui/root.c +++ b/src/ui/root.c @@ -716,14 +716,14 @@ static iBool handleSearchBarCommands_(iWidget *searchBar, const char *cmd) { equal_Rangecc(range_Command(cmd, "id"), "find.input")) { iInputWidget *input = findChild_Widget(searchBar, "find.input"); if (arg_Command(cmd) && argLabel_Command(cmd, "enter") && isVisible_Widget(input)) { - postCommand_App("find.next"); + postCommand_Root(searchBar->root, "find.next"); /* Keep focus when pressing Enter. */ if (!isEmpty_String(text_InputWidget(input))) { - postCommand_App("focus.set id:find.input"); + postCommand_Root(searchBar->root, "focus.set id:find.input"); } } else { - postCommand_App("find.clearmark"); + postCommand_Root(searchBar->root, "find.clearmark"); } return iTrue; } -- cgit v1.2.3