From b9796e99d58252e4c764b64df415ff2045b89ea7 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 8 Dec 2025 00:32:56 +0900 Subject: [PATCH] tiny fix --- src/backend/x11.c | 3 +++ src/draw.c | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/backend/x11.c b/src/backend/x11.c index 7f18f4a..fee1e6d 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -386,8 +386,11 @@ static void MwLLSetWHImpl(MwLL handle, int w, int h) { destroy_pixmap(handle); create_pixmap(handle); + /* we want events */ +#if 0 handle->x11.width = w; handle->x11.height = h; +#endif XSync(handle->x11.display, False); diff --git a/src/draw.c b/src/draw.c index fdf8d80..ac16451 100644 --- a/src/draw.c +++ b/src/draw.c @@ -132,8 +132,12 @@ void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert) { int diff = get_color_diff(handle) / 3 * 2; if(MwDefaultBorderWidth(handle) >= 2) { - MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) - 1, -diff, (handle->parent == NULL || handle->parent->lowlevel == NULL) ? 1 : 0); - MwDrawFrameEx(handle, rect, color, invert, 1, diff, 0); + int i; + int st = invert ? 1 : 0; + for(i = st; i < st + 2; i++) { + if((i % 2) == 0) MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) - 1, -diff, (handle->parent == NULL || handle->parent->lowlevel == NULL) ? 1 : 0); + if((i % 2) == 1) MwDrawFrameEx(handle, rect, color, invert, 1, diff, 0); + } } else { MwDrawFrameEx(handle, rect, color, invert, 1, 0, 0); }