diff options
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 62d195fb..7d08b83a 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -713,14 +713,14 @@ static void itemClicked_SidebarWidget_(iSidebarWidget *d, const iSidebarItem *it | |||
713 | break; | 713 | break; |
714 | } | 714 | } |
715 | case feeds_SidebarMode: { | 715 | case feeds_SidebarMode: { |
716 | postCommandString_App( | 716 | postCommandString_Root(get_Root(), |
717 | feedEntryOpenCommand_String(&item->url, openTabMode_Sym(modState_Keys()))); | 717 | feedEntryOpenCommand_String(&item->url, openTabMode_Sym(modState_Keys()))); |
718 | break; | 718 | break; |
719 | } | 719 | } |
720 | case bookmarks_SidebarMode: | 720 | case bookmarks_SidebarMode: |
721 | case history_SidebarMode: { | 721 | case history_SidebarMode: { |
722 | if (!isEmpty_String(&item->url)) { | 722 | if (!isEmpty_String(&item->url)) { |
723 | postCommandf_App("open newtab:%d url:%s", | 723 | postCommandf_Root(get_Root(), "open newtab:%d url:%s", |
724 | openTabMode_Sym(modState_Keys()), | 724 | openTabMode_Sym(modState_Keys()), |
725 | cstr_String(&item->url)); | 725 | cstr_String(&item->url)); |
726 | } | 726 | } |
@@ -961,13 +961,13 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) | |||
961 | } | 961 | } |
962 | else if (isCommand_Widget(w, ev, "mouse.moved")) { | 962 | else if (isCommand_Widget(w, ev, "mouse.moved")) { |
963 | if (isResizing_SidebarWidget_(d)) { | 963 | if (isResizing_SidebarWidget_(d)) { |
964 | const iInt2 local = localCoord_Widget(w, coord_Command(cmd)); | 964 | const iInt2 inner = windowToInner_Widget(w, coord_Command(cmd)); |
965 | const int resMid = d->resizer->rect.size.x / 2; | 965 | const int resMid = d->resizer->rect.size.x / 2; |
966 | setWidth_SidebarWidget( | 966 | setWidth_SidebarWidget( |
967 | d, | 967 | d, |
968 | ((d->side == left_SideBarSide | 968 | ((d->side == left_SideBarSide |
969 | ? local.x | 969 | ? inner.x |
970 | : (size_Root(w->root).x - coord_Command(cmd).x)) + | 970 | : (right_Rect(rect_Root(w->root)) - coord_Command(cmd).x)) + |
971 | resMid) / (float) gap_UI); | 971 | resMid) / (float) gap_UI); |
972 | } | 972 | } |
973 | return iTrue; | 973 | return iTrue; |
@@ -1086,7 +1086,7 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) | |||
1086 | const iSidebarItem *item = d->contextItem; | 1086 | const iSidebarItem *item = d->contextItem; |
1087 | if (item) { | 1087 | if (item) { |
1088 | if (isCommand_Widget(w, ev, "feed.entry.opentab")) { | 1088 | if (isCommand_Widget(w, ev, "feed.entry.opentab")) { |
1089 | postCommandString_App(feedEntryOpenCommand_String(&item->url, 1)); | 1089 | postCommandString_Root(get_Root(), feedEntryOpenCommand_String(&item->url, 1)); |
1090 | return iTrue; | 1090 | return iTrue; |
1091 | } | 1091 | } |
1092 | if (isCommand_Widget(w, ev, "feed.entry.toggleread")) { | 1092 | if (isCommand_Widget(w, ev, "feed.entry.toggleread")) { |