]> git.eshelyaron.com Git - emacs.git/commit
Reduce non-toolkit scroll bar flicker
authorPo Lu <luangruo@yahoo.com>
Sun, 6 Mar 2022 02:02:03 +0000 (10:02 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 6 Mar 2022 02:02:03 +0000 (10:02 +0800)
commitdb2cb522e154ce97b7a780572d2cb99d82d291ca
tree0034636d6dcf9a776d4f47736d3ffddd8a800624
parentc9667e9b60fe0044ea4d5f000973a87a0c584033
Reduce non-toolkit scroll bar flicker

* src/xterm.c (x_scroll_bar_create): Initialize double buffer
for scroll bar.
(x_scroll_bar_set_handle)
(x_scroll_bar_remove, x_scroll_bar_expose): Draw to back buffer
instead.
(x_scroll_bar_end_update): New function.
(x_scroll_bar_clear): Fill the scroll bar with the background
instead when double buffered.
* src/xterm.h (struct scroll_bar): New field `x_drawable'.
src/xterm.c
src/xterm.h