]> git.eshelyaron.com Git - emacs.git/commit
Use Cairo XCB surfaces when XCB is available
authorPo Lu <luangruo@yahoo.com>
Wed, 19 Jan 2022 09:39:04 +0000 (17:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 19 Jan 2022 09:41:22 +0000 (17:41 +0800)
commitde614ec9508d6ba34abf9db28f5d086b8710e361
tree35aa403aa4e645e7f51015602135341dfacd0493
parent596d0bda6da8b8c9092bc3778738912c7bdfc544
Use Cairo XCB surfaces when XCB is available

This lets us get at goodies such as shm support, which aren't
available with the xlib surface.  (bug#52120)

* configure.ac: Test for cairo-xcb if cairo is available on X.
* src/xterm.c (USE_CAIRO_XCB_SURFACE): New define.
(x_begin_cr_clip): Create XCB surfaces if available.
(x_try_cr_xlib_drawable):
(x_scroll_run): Handle XCB surfaces.
(x_term_init): Find XCB visualtype structure.
* src/xterm.h (struct x_display_info): New field `xcb_visual'.
* src/xwidget.c (x_draw_xwidget_glyph_string): Fix integer
overflow.
configure.ac
src/xterm.c
src/xterm.h
src/xwidget.c