GNU bug report logs - #42406
Mouse-wheel scrolling can be flickering

Previous Next

Package: emacs;

Reported by: Konrad Podczeck <konrad.podczeck <at> univie.ac.at>

Date: Fri, 17 Jul 2020 15:37:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, konrad.podczeck <at> univie.ac.at, 42406 <at> debbugs.gnu.org
Subject: bug#42406: Mouse-wheel scrolling can be flickering
Date: Fri, 18 Dec 2020 00:19:48 +0100
>> In the case at hand Emacs relies on redisplaying all frames when
>> scrolling a window that is not on the selected frame in order to
>> correctly reflect the change in the scrolled window's mode line.
>
> That's not my understanding.  My understanding is that the user
> scrolls the _selected_ window, because otherwise wset_update_mode_line
> doesn't set update_mode_lines:
>
>    static void
>    wset_update_mode_line (struct window *w)
>    {
>      /* If this window is the selected window on its frame, set the
>         global variable update_mode_lines, so that gui_consider_frame_title
>         will consider this frame's title for redisplay.  */
>      Lisp_Object fselected_window = XFRAME (WINDOW_FRAME (w))->selected_window;
>
>      if (WINDOWP (fselected_window) && XWINDOW (fselected_window) == w)
>        update_mode_lines = 42;
>      else
>        w->update_mode_line = true;
>    }

Indeed, you're right.  This doesn't make any sense to me at all.  Why
should a non-selected frame care about whether I scrolled a window on
the selected frame?

>> IIUC windows_or_buffers_changed affects frames as well.  For example, I
>> have no idea why making a frame (in)visible should redisplay all other
>> frames while moving a frame on the screen apparently does not.
>
> That's commented out now,

Not in Fmake_frame_invisible AFAICT.

> although the comment seems to hint on the
> reason.

martin




This bug report was last modified 4 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.