Add XSync() before querying pointer to get any destroys done. Not part of the build.

git-svn-id: svn://10.0.0.236/trunk@92217 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%redhat.com 2001-04-13 21:27:34 +00:00
parent 6f6e1e5e2e
commit 852798a51d

View File

@ -44,6 +44,13 @@ nsPointerService::WidgetUnderPointer(nsIWidget **_retval,
int win_x_return, win_y_return;
unsigned int mask_return;
// Flush the queue to get any pending destroys out the door. If we
// don't then we can end up with a sitution where the XQueryPointer
// flushes the queue and then the XTranslateCoordinates will cause
// an X error since the window doesn't exist anymore. God,
// sometimes I just hate X.
XSync(GDK_DISPLAY(), False);
// Query the pointer
retval = XQueryPointer(GDK_DISPLAY(),
GDK_WINDOW_XWINDOW(GDK_ROOT_PARENT()),