From d29f1af67c51d3aad911a44e8a7cb512dc2c9a42 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Jul 2019 23:55:43 +0200 Subject: Windows: Focus windows when shown This is a bit sloppy, but matches the typical behaviour on other platforms. --- pugl/pugl_win.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pugl') diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c index a75a259..9f44144 100644 --- a/pugl/pugl_win.c +++ b/pugl/pugl_win.c @@ -353,6 +353,7 @@ puglShowWindow(PuglView* view) PuglInternals* impl = view->impl; ShowWindow(impl->hwnd, SW_SHOWNORMAL); + SetFocus(impl->hwnd); view->visible = true; } -- cgit v1.2.1