summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 19:00:59 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 19:00:59 +0300
commite9869df42a2e9f5a4ec079a08a8e298de1783347 (patch)
tree458838e652790c7f6cf219ad794e75d9cf62e9be /src/ui
parent42bb54ff55ae6e2e2c6bf8a5581d14c1289f0234 (diff)
SidebarWidget: Hand cursor over links
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/sidebarwidget.c10
1 files changed, 9 insertions, 1 deletions
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)
611 if (contains_Widget(d->resizer, mouse)) { 611 if (contains_Widget(d->resizer, mouse)) {
612 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_SIZEWE); 612 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_SIZEWE);
613 } 613 }
614 else if (contains_Widget(constAs_Widget(d->scroll), mouse)) {
615 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW);
616 }
614 else { 617 else {
615 if (contains_Widget(w, mouse)) { 618 if (contains_Widget(w, mouse)) {
616 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW);
617 hover = itemIndex_SidebarWidget_(d, mouse); 619 hover = itemIndex_SidebarWidget_(d, mouse);
620 if (hover != iInvalidPos && d->mode != identities_SidebarMode) {
621 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_HAND);
622 }
623 else {
624 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW);
625 }
618 } 626 }
619 } 627 }
620 if (hover != d->hoverItem) { 628 if (hover != d->hoverItem) {