do XFlush() after each record in order to immediately process events and avoid buffering/delays/lagging v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 01 Apr 2021 18:55:32 +0200
branchv_0
changeset 6 3407386d1f60
parent 5 dbf093b8b9ac
child 7 93d9c4fce585
do XFlush() after each record in order to immediately process events and avoid buffering/delays/lagging
src/X11Handler.h
--- a/src/X11Handler.h	Thu Apr 01 17:54:46 2021 +0200
+++ b/src/X11Handler.h	Thu Apr 01 18:55:32 2021 +0200
@@ -130,7 +130,7 @@
 		}
 
 		attributeIndex++;
-		
+
 		bool debug = configuration.debug;
 		bool run = !configuration.dryRun;
 
@@ -148,6 +148,7 @@
 				std::wcerr << L"Unsupported event" << std::endl;
 			}
 
+			XFlush(display.display);
 			attributeIndex = 0;
 			currentEvent = Event();
 		}