summaryrefslogtreecommitdiff
path: root/src/ui/widget.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/widget.c
parent904a84bdbef5143763a6585cf17b35667801fa9f (diff)
Manage mouse cursors at window level
The modal sheets switch mouse cursor to the default arrow.
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r--src/ui/widget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 1c19b70f..135eb267 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -454,6 +454,7 @@ iBool processEvent_Widget(iWidget *d, const SDL_Event *ev) {
454 } 454 }
455 } 455 }
456 if (d->flags & mouseModal_WidgetFlag && isMouseEvent_(ev)) { 456 if (d->flags & mouseModal_WidgetFlag && isMouseEvent_(ev)) {
457 setCursor_Window(get_Window(), SDL_SYSTEM_CURSOR_ARROW);
457 return iTrue; 458 return iTrue;
458 } 459 }
459 return iFalse; 460 return iFalse;