From c86a7f10621d8f5f6f2a89f801ca25560ecc9fff Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Sep 2016 22:04:19 +0800 Subject: Fix focus events --- pugl/pugl_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pugl') 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); -- cgit v1.2.1