bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrollbar (no toolkit) display bug


From: Gerd Moellmann
Subject: Re: scrollbar (no toolkit) display bug
Date: 24 Oct 2001 16:07:28 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

address@hidden (Raphaël Berbain) writes:

> Once the emacs window comes up, I typed C-x 3.  I can then notice two
> vertical bands where the toolbar isn't drawn properly, lined up with
> the scrollbars.

This should fix the drawing into the tool bar.  I'll take a look
at the other one later.

*** xterm.c     2001/10/24 13:56:14     1.664
--- xterm.c     2001/10/24 14:01:28
***************
*** 9211,9221 ****
    /* Does the scroll bar exist yet?  */
    if (NILP (w->vertical_scroll_bar))
      {
-       BLOCK_INPUT;
        if (width && height)
!       x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
!                     left, top, width, height, False);
!       UNBLOCK_INPUT;
        bar = x_scroll_bar_create (w, top, sb_left, sb_width, height);
      }
    else
--- 9211,9224 ----
    /* Does the scroll bar exist yet?  */
    if (NILP (w->vertical_scroll_bar))
      {
        if (width && height)
!       {
!         BLOCK_INPUT;
!         x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
!                       left, top, width, height, False);
!         UNBLOCK_INPUT;
!       }
!       
        bar = x_scroll_bar_create (w, top, sb_left, sb_width, height);
      }
    else
***************
*** 9276,9282 ****
        int rest = area_width - sb_width;
        if (rest > 0)
          x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
!                       left + area_width -  rest, 0,
                        rest, max (height, 1), False);
        }
        
--- 9279,9285 ----
        int rest = area_width - sb_width;
        if (rest > 0)
          x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
!                       left + area_width -  rest, top,
                        rest, max (height, 1), False);
        }
        



reply via email to

[Prev in Thread] Current Thread [Next in Thread]