From 3fb0ebf9a77007078033a090245f798f60f25653 Mon Sep 17 00:00:00 2001 From: Dmitry Karasik Date: Thu, 12 Dec 2024 16:06:31 +0100 Subject: [PATCH] force paint menu items on selecvtion change strange interaction with 2a1b9ec0adbc2feff20e455c56cde23d639c8588 caused Expose events not to come back after an XFlush followed by a longer select/wait --- unix/menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/menu.c b/unix/menu.c index 95a92eaa..cf74663e 100644 --- a/unix/menu.c +++ b/unix/menu.c @@ -732,6 +732,7 @@ menu_select_item( Handle self, PMenuWindow w, int index) w-> selected = ( index < 0) ? -100 : index; XClearArea( DISP, w-> w, r.x, r.y, r.width, r.height, true); XX-> paint_pending = true; + XSync(DISP, false); if (index >= 0) { PMenuItemReg m = w->m;