From 1c1e053d3403a6e03a00db8f3551f6a19302876b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 2 Aug 2019 21:49:16 +0200 Subject: Replace puglIgnoreKeyRepeat() with a hint --- pugl/detail/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pugl/detail/x11.c') diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index 32f1393..d014b2e 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -506,7 +506,7 @@ puglProcessEvents(PuglView* view) XNextEvent(impl->display, &xevent); if (xevent.type == KeyRelease) { // Ignore key repeat if necessary - if (view->ignoreKeyRepeat && + if (view->hints.ignoreKeyRepeat && XEventsQueued(impl->display, QueuedAfterReading)) { XEvent next; XPeekEvent(impl->display, &next); -- cgit v1.2.1