diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:26:11 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:26:11 +0200 |
commit | fa174461abdc5c33de16428109c7d46b4f150093 (patch) | |
tree | 21cf16a2426f8a6b76195e1816ceea69778fbd70 /src/ui/window.c | |
parent | 21f6248a3dc906a0c296b937dd1aa697784e6ea3 (diff) |
Scrollbar fading and periodic commands
Added a new mechanism to issue periodic but not per-frame commands. This is used for main-thread operations like checking if it's time to fade away the scrollbars.
Scrollbars are faded away completely on Apple platforms. Adjusted list right margins accordingly.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 1c0c0394..e7945c62 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1827,7 +1827,7 @@ void draw_Window(iWindow *d) { | |||
1827 | } | 1827 | } |
1828 | } | 1828 | } |
1829 | #endif | 1829 | #endif |
1830 | const int winFlags = SDL_GetWindowFlags(d->win); | 1830 | const int winFlags = SDL_GetWindowFlags(d->win); |
1831 | const iBool gotFocus = (winFlags & SDL_WINDOW_INPUT_FOCUS) != 0; | 1831 | const iBool gotFocus = (winFlags & SDL_WINDOW_INPUT_FOCUS) != 0; |
1832 | /* Clear the window. The clear color is visible as a border around the window | 1832 | /* Clear the window. The clear color is visible as a border around the window |
1833 | when the custom frame is being used. */ { | 1833 | when the custom frame is being used. */ { |