summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-14 22:04:19 +0800
committerDavid Robillard <d@drobilla.net>2016-09-14 22:04:19 +0800
commitc86a7f10621d8f5f6f2a89f801ca25560ecc9fff (patch)
tree0477094b26ffd7c36730c3e1d063ed1b526da14d
parent3d26c1346b819aca7d4073360ce409c1f33aa2f3 (diff)
Fix focus events
-rw-r--r--pugl/pugl_x11.c2
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);