瀏覽代碼

Remove flush from render methods

This causes flickering because the render is done prematurely.
Thomas Dy 7 年之前
父節點
當前提交
002aaaf8e3
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/ui/tray.rs

+ 0 - 1
src/ui/tray.rs

@@ -95,7 +95,6 @@ impl widget::Widget for Tray {
                 (xcb::CONFIG_WINDOW_X as u16, xpos)
             ]);
         }
-        self.conn.flush();
     }
 
     fn handle_event(&mut self, event: &xcb::GenericEvent, is_finishing: bool) -> bool {