From b5ef9123301370a785ce6ff28adc27e64486ea5d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jul 2019 15:56:16 +0200 Subject: Implement focus on Windows --- pugl/pugl_win.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c index fc72498..05888d3 100644 --- a/pugl/pugl_win.c +++ b/pugl/pugl_win.c @@ -776,6 +776,12 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) translateMessageParamsToEvent(lParam, wParam, &event); } break; + case WM_SETFOCUS: + event.type = PUGL_FOCUS_IN; + break; + case WM_KILLFOCUS: + event.type = PUGL_FOCUS_OUT; + break; case WM_QUIT: case PUGL_LOCAL_CLOSE_MSG: event.close.type = PUGL_CLOSE; -- cgit v1.2.1