diff options
author | Jordan Halase <jordan@halase.me> | 2020-10-14 15:01:00 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-16 18:23:02 +0200 |
commit | 879e876ba3c864fbb6c286dcc6aaf5922171faea (patch) | |
tree | 5d29d2801c135ddcaca3b5dda95be4ead3d5e5b2 /examples | |
parent | f86e7d57d9b521a9c058cc7e7f0cc88216bed3ba (diff) | |
download | pugl-879e876ba3c864fbb6c286dcc6aaf5922171faea.tar.gz pugl-879e876ba3c864fbb6c286dcc6aaf5922171faea.tar.bz2 pugl-879e876ba3c864fbb6c286dcc6aaf5922171faea.zip |
Windows: Fix cursor when leaving client area
This resets the cursor when the pointer moves into the title bar.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_cursor_demo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/pugl_cursor_demo.c b/examples/pugl_cursor_demo.c index 03ab5da..4953682 100644 --- a/examples/pugl_cursor_demo.c +++ b/examples/pugl_cursor_demo.c @@ -111,6 +111,9 @@ onEvent(PuglView* view, const PuglEvent* event) case PUGL_EXPOSE: onExpose(); break; + case PUGL_POINTER_OUT: + puglSetCursor(view, PUGL_CURSOR_ARROW); + break; case PUGL_CLOSE: app->quit = 1; break; |