diff options
Diffstat (limited to 'src/ui/lookupwidget.c')
-rw-r--r-- | src/ui/lookupwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c index 7c3ebce2..d8e594de 100644 --- a/src/ui/lookupwidget.c +++ b/src/ui/lookupwidget.c | |||
@@ -427,7 +427,7 @@ void submit_LookupWidget(iLookupWidget *d, const iString *term) { | |||
427 | trim_String(&d->pendingTerm); | 427 | trim_String(&d->pendingTerm); |
428 | iReleasePtr(&d->pendingDocs); | 428 | iReleasePtr(&d->pendingDocs); |
429 | if (!isEmpty_String(&d->pendingTerm)) { | 429 | if (!isEmpty_String(&d->pendingTerm)) { |
430 | d->pendingDocs = listDocuments_App(); /* holds reference to all open tabs */ | 430 | d->pendingDocs = listDocuments_App(get_Root()); /* holds reference to all open tabs */ |
431 | signal_Condition(&d->jobAvailable); | 431 | signal_Condition(&d->jobAvailable); |
432 | } | 432 | } |
433 | else { | 433 | else { |
@@ -654,7 +654,7 @@ static iBool processEvent_LookupWidget_(iLookupWidget *d, const SDL_Event *ev) { | |||
654 | (equal_Command(cmd, "layout.changed") && | 654 | (equal_Command(cmd, "layout.changed") && |
655 | equal_Rangecc(range_Command(cmd, "id"), "navbar"))) { | 655 | equal_Rangecc(range_Command(cmd, "id"), "navbar"))) { |
656 | /* Position the lookup popup under the URL bar. */ { | 656 | /* Position the lookup popup under the URL bar. */ { |
657 | const iInt2 rootSize = size_Root(get_Root()); | 657 | const iInt2 rootSize = size_Root(w->root); |
658 | const iRect navBarBounds = bounds_Widget(findWidget_App("navbar")); | 658 | const iRect navBarBounds = bounds_Widget(findWidget_App("navbar")); |
659 | setFixedSize_Widget(w, init_I2(width_Widget(findWidget_App("url")), | 659 | setFixedSize_Widget(w, init_I2(width_Widget(findWidget_App("url")), |
660 | (rootSize.y - bottom_Rect(navBarBounds)) / 2)); | 660 | (rootSize.y - bottom_Rect(navBarBounds)) / 2)); |