diff options
author | David Robillard <d@drobilla.net> | 2016-09-14 22:04:19 +0800 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-14 22:04:19 +0800 |
commit | c86a7f10621d8f5f6f2a89f801ca25560ecc9fff (patch) | |
tree | 0477094b26ffd7c36730c3e1d063ed1b526da14d | |
parent | 3d26c1346b819aca7d4073360ce409c1f33aa2f3 (diff) | |
download | pugl-c86a7f10621d8f5f6f2a89f801ca25560ecc9fff.tar.gz pugl-c86a7f10621d8f5f6f2a89f801ca25560ecc9fff.tar.bz2 pugl-c86a7f10621d8f5f6f2a89f801ca25560ecc9fff.zip |
Fix focus events
-rw-r--r-- | pugl/pugl_x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index 4e7b447..855d04b 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -561,7 +561,7 @@ translateEvent(PuglView* view, XEvent xevent) case FocusIn: case FocusOut: - event.type = ((xevent.type == EnterNotify) + event.type = ((xevent.type == FocusIn) ? PUGL_FOCUS_IN : PUGL_FOCUS_OUT); event.focus.grab = (xevent.xfocus.mode != NotifyNormal); |