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:
Henrik Andersson 2012-06-29 06:38:33 +00:00
parent 67e0c58394
commit dcbf2e37c5

8
xwin.c
View File

@ -772,8 +772,14 @@ seamless_restack_test()
} }
/* Destroy windows */ /* Destroy windows */
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++) {
XDestroyWindow(g_display, wnds[i]); XDestroyWindow(g_display, wnds[i]);
do
{
XWindowEvent(g_display, wnds[i], StructureNotifyMask, &xevent);
}
while (xevent.type != DestroyNotify);
}
} }
#define SPLITCOLOUR15(colour, rv) \ #define SPLITCOLOUR15(colour, rv) \