From 9cf85f395603dcaa0b1ea3bd11652f9254ec013e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Fri, 14 Nov 2025 16:57:46 +0000 Subject: [PATCH] fancy git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@717 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/backend/x11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/x11.c b/src/backend/x11.c index b48e1e5..c902c57 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -219,6 +219,8 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) { if(x != MwDEFAULT || y != MwDEFAULT) { unsigned int dummy; + XUnmapWindow(r->x11.display, r->x11.window); + MwLLGetXYWH(r, &px, &py, &dummy, &dummy); if(x == MwDEFAULT) x = px; @@ -229,6 +231,8 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) { } else { MwLLSetXY(r, x, y); } + + wait_map(r); } return r;