]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crash on setting frame background color
authorPo Lu <luangruo@yahoo.com>
Wed, 3 Aug 2022 12:16:31 +0000 (20:16 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 3 Aug 2022 12:17:31 +0000 (20:17 +0800)
* src/xfns.c (x_set_background_color): Stop setting scroll bar
window background, since this is now taken care of
automatically.

src/xfns.c

index c149eaeca3b6fc39fd3b4aa29c647a261be2946f..614a5b3455199b0b465810eaec9f9255d59422d6 100644 (file)
@@ -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);