aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-21 18:16:48 +0200
committerDavid Robillard <d@drobilla.net>2019-07-21 18:17:04 +0200
commit17af0352387a536c461cf366132b3d6c90ce3c70 (patch)
tree2bd2697d09ef8733f7f980528fbb87ac02307297 /pugl/pugl_win.c
parent1ffbc79483c1e068de412cabe7e892e24033d693 (diff)
downloadpugl-17af0352387a536c461cf366132b3d6c90ce3c70.tar.gz
pugl-17af0352387a536c461cf366132b3d6c90ce3c70.tar.bz2
pugl-17af0352387a536c461cf366132b3d6c90ce3c70.zip
Implement puglGrabFocus on Windows and MacOS
Diffstat (limited to 'pugl/pugl_win.c')
-rw-r--r--pugl/pugl_win.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c
index dbb62af..2e05c71 100644
--- a/pugl/pugl_win.c
+++ b/pugl/pugl_win.c
@@ -799,8 +799,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
void
puglGrabFocus(PuglView* view)
{
- (void)view;
- // TODO
+ SetFocus(view->impl->hwnd);
}
PuglStatus