mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 10:53:27 +00:00
fix bug
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@739 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -44,7 +44,6 @@ static void sync_move(MwLL handle, int x, int y) {
|
|||||||
XEvent* queue = NULL;
|
XEvent* queue = NULL;
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
unsigned long n = MwTimeGetTick() + 100;
|
unsigned long n = MwTimeGetTick() + 100;
|
||||||
int t = 0;
|
|
||||||
XWindowAttributes xwa;
|
XWindowAttributes xwa;
|
||||||
|
|
||||||
XGetWindowAttributes(handle->x11.display, handle->x11.window, &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);
|
XSync(handle->x11.display, False);
|
||||||
if(!XPending(handle->x11.display)) continue;
|
if(!XPending(handle->x11.display)) continue;
|
||||||
XNextEvent(handle->x11.display, &ev);
|
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))) {
|
if(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) {
|
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
arrput(queue, ev);
|
arrput(queue, ev);
|
||||||
|
|||||||
Reference in New Issue
Block a user