diff options
| author | Po Lu <luangruo@yahoo.com> | 2022-08-03 20:16:31 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2022-08-03 20:17:31 +0800 |
| commit | bb56cc4cad3a5680e30dc29723690708bcff08f2 (patch) | |
| tree | 13a42a403687e63aae3f2668bb7917fd41a02339 /src | |
| parent | 4bbd1f38ca43c543f27178ba9b2b600d25711c61 (diff) | |
Fix crash on setting frame background color
* src/xfns.c (x_set_background_color): Stop setting scroll bar
window background, since this is now taken care of
automatically.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/xfns.c b/src/xfns.c index c149eaeca3b..614a5b34551 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1202,20 +1202,6 @@ x_set_background_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) xg_set_background_color (f, bg); #endif -#ifndef USE_TOOLKIT_SCROLL_BARS /* Turns out to be annoying with - toolkit scroll bars. */ - { - Lisp_Object bar; - for (bar = FRAME_SCROLL_BARS (f); - !NILP (bar); - bar = XSCROLL_BAR (bar)->next) - { - Window window = XSCROLL_BAR (bar)->x_window; - XSetWindowBackground (dpy, window, bg); - } - } -#endif /* USE_TOOLKIT_SCROLL_BARS */ - unblock_input (); update_face_from_frame_parameter (f, Qbackground_color, arg); |
