From 52b0b5e5b82a4d18a43a2862099f921aa4efc685 Mon Sep 17 00:00:00 2001 From: seebye Date: Fri, 20 Dec 2019 19:33:59 +0100 Subject: [PATCH] Fix race condition between creating a window and drawing on it Reason: Xshm is used to draw on windows (via original Xlib / c extension). So there are at least two connections to the X11 server. -> Race condition between drawing on windows (Xlib) and creating them (python-Xlib) --- ueberzug/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ueberzug/ui.py b/ueberzug/ui.py index fa74fa8..da8f3a5 100644 --- a/ueberzug/ui.py +++ b/ueberzug/ui.py @@ -231,7 +231,7 @@ class OverlayWindow: event_mask=X.StructureNotifyMask) self._set_click_through() self._set_invisible() - self._display.flush() + self._display.sync() def reset_terminal_info(self): """Resets the terminal information of this window."""