From 907a814ec273506532b89141eb291161b41c66a1 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 16 Nov 2025 06:36:32 +0000 Subject: [PATCH] fix bug git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@739 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/backend/x11.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/x11.c b/src/backend/x11.c index c448598..55ce0b3 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -44,7 +44,6 @@ static void sync_move(MwLL handle, int x, int y) { XEvent* queue = NULL; XEvent ev; unsigned long n = MwTimeGetTick() + 100; - int t = 0; XWindowAttributes xwa; XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa); @@ -55,9 +54,7 @@ static void sync_move(MwLL handle, int x, int y) { XSync(handle->x11.display, False); if(!XPending(handle->x11.display)) continue; XNextEvent(handle->x11.display, &ev); - if(t == 0 && ev.type == ReparentNotify && ev.xreparent.window == handle->x11.window && ev.xreparent.window != RootWindow(handle->x11.display, DefaultScreen(handle->x11.display))) { - t = 1; - } else if(t == 1 && ev.type == ConfigureNotify && ev.xconfigure.window == handle->x11.window) { + if(ev.type == ReparentNotify && ev.xreparent.window == handle->x11.window && ev.xreparent.window != RootWindow(handle->x11.display, DefaultScreen(handle->x11.display))) { break; } else { arrput(queue, ev);