]> git.eshelyaron.com Git - emacs.git/commit
Fix error handling for XCB Xlib
authorPo Lu <luangruo@yahoo.com>
Sat, 2 Jul 2022 13:55:22 +0000 (21:55 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 2 Jul 2022 13:56:59 +0000 (21:56 +0800)
commitb25ca542983dc885d69d263cb9719f7f3db416fa
treef96df4aecc6e9adf2df0f17d5262c121cffce4b6
parent59d109b73c48ca41d240f1fbe10f7349e9df4e31
Fix error handling for XCB Xlib

* src/xterm.c (xm_send_drop_message)
(xm_send_top_level_enter_message, xm_send_drag_motion_message)
(xm_send_top_level_leave_message, x_dnd_compute_toplevels)
(x_dnd_send_enter, x_dnd_send_position, x_dnd_send_leave)
(x_dnd_send_drop, handle_one_xevent, x_catch_errors_with_handler)
(x_request_can_fail, x_clean_failable_requests)
(x_ignore_errors_for_next_request, x_stop_ignoring_errors)
(x_uncatch_errors, x_check_errors, x_had_errors_p, x_error_handler)
(frame_set_mouse_pixel_position, x_focus_frame): Record serial
sequences instead of simply the next request when ignoring a
single request.  Use XNextRequest instead of NextRequest, since
the latter is unreliable when using Xlib built with XCB.

* src/xterm.h (struct x_failable_request): New struct..
(struct x_display_info): Make failable request variables the
right type.
src/xterm.c
src/xterm.h