From 161e6c76de63653c4bf5c6480912282c00e4d5c8 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Sun, 29 Mar 2020 22:47:03 -0400 Subject: [PATCH] Call XFlush when we process duplicate resize events --- src/nimwin.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nimwin.nim b/src/nimwin.nim index 154377f..14ed68e 100644 --- a/src/nimwin.nim +++ b/src/nimwin.nim @@ -179,6 +179,7 @@ when isMainModule: # This avoids "movement lag" while display.XCheckTypedEvent(MotionNotify, ev.addr) != 0: continue + discard display.XFlush() var xDiff : int = ev.xButton.xRoot - start.xRoot var yDiff : int = ev.xButton.yRoot - start.yRoot