summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-08-29 18:31:13 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-08-29 18:31:13 -0400
commitb003afc1ed681288e479bd9b7cb3aef1513e0058 (patch)
tree511214126d08fb35ab9eb63225e6d8eb6cd2dcdb
parentb55b46fa07bdd92209d0d954fba1aa7d864e2607 (diff)
Flush the Xlib buffer after setting gamma.HEADmaster
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.
-rw-r--r--ggamma.c1
1 files changed, 1 insertions, 0 deletions
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;