aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pugl/pugl_win.c6
1 files changed, 6 insertions, 0 deletions
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;