]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the colours on Motif horizontal scroll bars
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Oct 2019 04:53:17 +0000 (06:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Oct 2019 04:53:17 +0000 (06:53 +0200)
* src/xterm.c (x_create_horizontal_toolkit_scroll_bar): Use the
same foreground/background colours as the vertical scroll bar
(bug#37359).

src/xterm.c

index 5baa29a8466b8bc17908b863fd574c8149c9a9a3..b49c9d6893a511b3cd578d4c2164f4a3a9519a70 100644 (file)
@@ -6303,17 +6303,19 @@ x_create_horizontal_toolkit_scroll_bar (struct frame *f, struct scroll_bar *bar)
   XtSetArg (av[ac], XmNincrement, 1); ++ac;
   XtSetArg (av[ac], XmNpageIncrement, 1); ++ac;
 
+  /* Note: "background" is the thumb color, and "trough" is the color behind
+     everything. */
   pixel = f->output_data.x->scroll_bar_foreground_pixel;
   if (pixel != -1)
     {
-      XtSetArg (av[ac], XmNforeground, pixel);
+      XtSetArg (av[ac], XmNbackground, pixel);
       ++ac;
     }
 
   pixel = f->output_data.x->scroll_bar_background_pixel;
   if (pixel != -1)
     {
-      XtSetArg (av[ac], XmNbackground, pixel);
+      XtSetArg (av[ac], XmNtroughColor, pixel);
       ++ac;
     }