From 879e876ba3c864fbb6c286dcc6aaf5922171faea Mon Sep 17 00:00:00 2001 From: Jordan Halase Date: Wed, 14 Oct 2020 15:01:00 -0500 Subject: Windows: Fix cursor when leaving client area This resets the cursor when the pointer moves into the title bar. --- examples/pugl_cursor_demo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') 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; -- cgit v1.2.1