From 6dcbcd1d7beb4a73329d91d317d9fc6e789a57cd Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Wed, 22 Jan 2014 00:10:50 -0600 Subject: [PATCH] Oh no you don't. --- src/arch/InputHandler/InputHandler_X11.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/arch/InputHandler/InputHandler_X11.cpp b/src/arch/InputHandler/InputHandler_X11.cpp index 26814180a8..cd285b526c 100644 --- a/src/arch/InputHandler/InputHandler_X11.cpp +++ b/src/arch/InputHandler/InputHandler_X11.cpp @@ -176,8 +176,9 @@ void InputHandler_X11::Update() DeviceButton lastDB = DeviceButton_Invalid; lastEvent.type = 0; - // TODO: Rewrite to use XEventsQueued, XNextEvent, and XPeekEvent - this - // will likely make the logic simpler + // We use XCheckWindowEvent instead of XNextEvent because + // other things (most notably ArchHooks_Unix) may be looking for + // events that we'd pick up and discard. // todo: add other masks? (like the ones for drag'n drop) -aj while( XCheckWindowEvent(Dpy, Win, KeyPressMask | KeyReleaseMask