diff options
author | David Robillard <d@drobilla.net> | 2019-07-22 23:55:43 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-23 20:28:56 +0200 |
commit | d29f1af67c51d3aad911a44e8a7cb512dc2c9a42 (patch) | |
tree | 826bc2c4f9799c30655e07f011685f6d833c732c /pugl | |
parent | 8ee970143b2ad1dd4d265bca0aef18aae643d305 (diff) | |
download | pugl-d29f1af67c51d3aad911a44e8a7cb512dc2c9a42.tar.gz pugl-d29f1af67c51d3aad911a44e8a7cb512dc2c9a42.tar.bz2 pugl-d29f1af67c51d3aad911a44e8a7cb512dc2c9a42.zip |
Windows: Focus windows when shown
This is a bit sloppy, but matches the typical behaviour on other platforms.
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/pugl_win.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |