From e9869df42a2e9f5a4ec079a08a8e298de1783347 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 24 Aug 2020 19:00:59 +0300 Subject: SidebarWidget: Hand cursor over links --- src/ui/sidebarwidget.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index aa2e185d..fed08f52 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -611,10 +611,18 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) if (contains_Widget(d->resizer, mouse)) { setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_SIZEWE); } + else if (contains_Widget(constAs_Widget(d->scroll), mouse)) { + setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW); + } else { if (contains_Widget(w, mouse)) { - setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW); hover = itemIndex_SidebarWidget_(d, mouse); + if (hover != iInvalidPos && d->mode != identities_SidebarMode) { + setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_HAND); + } + else { + setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW); + } } } if (hover != d->hoverItem) { -- cgit v1.2.3