From b003afc1ed681288e479bd9b7cb3aef1513e0058 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 29 Aug 2017 18:31:13 -0400 Subject: Flush the Xlib buffer after setting gamma. Before I added the dirty tracking, this wasn't necessary because it filled the buffer very frequently. But now, with it optimizing out calls, I was seeing mysterious lag. --- ggamma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ggamma.c b/ggamma.c index de0192e..1e3ef3c 100644 --- a/ggamma.c +++ b/ggamma.c @@ -121,6 +121,7 @@ int main(int argc, char *argv[]) { void flush(void) { XRRSetCrtcGamma(display, crtc, gamma); + XFlush(display); } GtkWidget *curve; -- cgit v1.2.3