summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-19 16:04:24 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-19 16:04:24 +0300
commit36f6b98f6835ed2a93d29f4937ac4d9cfd87a485 (patch)
treebbf3f497e96505214836eaaa1da0364300c7b8f7 /src/ui/sidebarwidget.c
parent904a84bdbef5143763a6585cf17b35667801fa9f (diff)
Manage mouse cursors at window level
The modal sheets switch mouse cursor to the default arrow.
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r--src/ui/sidebarwidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 98570471..04023ebc 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -465,11 +465,11 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
465 const iInt2 mouse = init_I2(ev->motion.x, ev->motion.y); 465 const iInt2 mouse = init_I2(ev->motion.x, ev->motion.y);
466 size_t hover = iInvalidPos; 466 size_t hover = iInvalidPos;
467 if (contains_Widget(d->resizer, mouse)) { 467 if (contains_Widget(d->resizer, mouse)) {
468 SDL_SetCursor(d->resizeCursor); 468 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_SIZEWE);
469 } 469 }
470 else { 470 else {
471 SDL_SetCursor(NULL);
472 if (contains_Widget(w, mouse)) { 471 if (contains_Widget(w, mouse)) {
472 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW);
473 hover = itemIndex_SidebarWidget_(d, mouse); 473 hover = itemIndex_SidebarWidget_(d, mouse);
474 } 474 }
475 } 475 }