Testing display 1 dequeue accumulator
Browse files
+1 −1 src/bar/bar.rs
| @@ -362,7 +362,7 @@ impl Bar { | ||
| 362 | 362 | 0, |
| 363 | 363 | ); |
| 364 | 364 | x11::xlib::XFreeGC(display, gc); |
| 365 | - x11::xlib::XSync(display, 0); | |
| 365 | + x11::xlib::XSync(display, 1); | |
| 366 | 366 | } |
| 367 | 367 | |
| 368 | 368 | self.needs_redraw = false; |
+1 −1 src/bar/font.rs
| @@ -135,7 +135,7 @@ impl FontDraw { | ||
| 135 | 135 | pub fn sync(&self) { |
| 136 | 136 | unsafe { |
| 137 | 137 | let display = x11::xft::XftDrawDisplay(self.xft_draw); |
| 138 | - x11::xlib::XSync(display, 0); | |
| 138 | + x11::xlib::XSync(display, 1); | |
| 139 | 139 | } |
| 140 | 140 | } |
| 141 | 141 | } |