[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xselect.c [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/xselect.c [lexbind] |
Date: |
Wed, 15 Sep 2004 20:32:41 -0400 |
Index: emacs/src/xselect.c
diff -c emacs/src/xselect.c:1.119.2.7 emacs/src/xselect.c:1.119.2.8
*** emacs/src/xselect.c:1.119.2.7 Sat Sep 4 09:26:27 2004
--- emacs/src/xselect.c Thu Sep 16 00:15:01 2004
***************
*** 744,750 ****
refering to the deleted window, and we'll get a BadWindow error
in XTread_socket when processing the events. I don't have
an idea how to fix that. gerd, 2001-01-98. */
! XFlush (display);
x_uncatch_errors (display, count);
UNBLOCK_INPUT;
}
--- 744,758 ----
refering to the deleted window, and we'll get a BadWindow error
in XTread_socket when processing the events. I don't have
an idea how to fix that. gerd, 2001-01-98. */
! /* 2004-09-10: XSync and UNBLOCK so that possible protocol errors are
! delivered before uncatch errors. */
! XSync (display, False);
! UNBLOCK_INPUT;
!
! /* GTK queues events in addition to the queue in Xlib. So we
! UNBLOCK to enter the event loop and get possible errors delivered,
! and then BLOCK again because x_uncatch_errors requires it. */
! BLOCK_INPUT;
x_uncatch_errors (display, count);
UNBLOCK_INPUT;
}