summaryrefslogtreecommitdiff
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_x11.c')
-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);