seamless_restack_test() leaves events on queue which breaks seamless
functionality, added event processing and wait for DestroyNotify for the testing windows to empty the queue before leaving the test function. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1663 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
67e0c58394
commit
dcbf2e37c5
8
xwin.c
8
xwin.c
@ -772,8 +772,14 @@ seamless_restack_test()
|
||||
}
|
||||
|
||||
/* Destroy windows */
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < 3; i++) {
|
||||
XDestroyWindow(g_display, wnds[i]);
|
||||
do
|
||||
{
|
||||
XWindowEvent(g_display, wnds[i], StructureNotifyMask, &xevent);
|
||||
}
|
||||
while (xevent.type != DestroyNotify);
|
||||
}
|
||||
}
|
||||
|
||||
#define SPLITCOLOUR15(colour, rv) \
|
||||
|
Loading…
Reference in New Issue
Block a user