From fd743825e745d94478cd8cacbf80dd1d0fa0443e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Fri, 14 Nov 2025 10:40:10 +0000 Subject: [PATCH] uhhhghghgh git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@702 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/backend/x11.c | 4 ---- src/widget/window.c | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/x11.c b/src/backend/x11.c index fdf3931..9ccf19d 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -931,10 +931,6 @@ static void MwLLMakeBorderlessImpl(MwLL handle, int toggle) { hints.flags = MWM_HINTS_DECORATIONS; hints.decorations = toggle ? 0 : 1; XChangeProperty(handle->x11.display, handle->x11.window, atom, atom, 32, PropModeReplace, (unsigned char*)&hints, 5); - - XUnmapWindow(handle->x11.display, handle->x11.window); - - wait_map(handle, 1, 0); } static void MwLLFocusImpl(MwLL handle) { diff --git a/src/widget/window.c b/src/widget/window.c index 05cfc8d..fff2ce9 100644 --- a/src/widget/window.c +++ b/src/widget/window.c @@ -21,7 +21,9 @@ static void draw(MwWidget handle) { MwLLFreeColor(c); } static void mwWindowMakeBorderlessImpl(MwWidget handle, int toggle) { + MwLLShow(handle->lowlevel, 0); MwLLMakeBorderless(handle->lowlevel, toggle); + MwLLShow(handle->lowlevel, 1); } static void func_handler(MwWidget handle, const char* name, void* out, va_list va) {