oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

Testing display 1 dequeue accumulator

Commit
f5e670cd5bec5568c9ced7f61e5707b9df2bec59
Parent
8e7c5c6
Author
tonybtw <tonybtw@tonybtw.com>
Date
2025-12-21 05:47:20

Diff

diff --git a/src/bar/bar.rs b/src/bar/bar.rs
index f6b3555..31ec156 100644
--- a/src/bar/bar.rs
+++ b/src/bar/bar.rs
@@ -362,7 +362,7 @@ impl Bar {
                 0,
             );
             x11::xlib::XFreeGC(display, gc);
-            x11::xlib::XSync(display, 0);
+            x11::xlib::XSync(display, 1);
         }
 
         self.needs_redraw = false;
diff --git a/src/bar/font.rs b/src/bar/font.rs
index ad846c3..9d45ae4 100644
--- a/src/bar/font.rs
+++ b/src/bar/font.rs
@@ -135,7 +135,7 @@ impl FontDraw {
     pub fn sync(&self) {
         unsafe {
             let display = x11::xft::XftDrawDisplay(self.xft_draw);
-            x11::xlib::XSync(display, 0);
+            x11::xlib::XSync(display, 1);
         }
     }
 }