Subject: bug#74641: When scrolling on non-selected window, this window does not change to selected.

From: <[email-masked]>
Date: Mon, 2 Dec 2024 03:00:46 +0200

Hi !

Assume, one frame and it is split into two window. When scrolling on non-selected window, this window does not change to selected.

If these two windows contain same buffer and when scrolling on non-selected window, the individual scroll events go through to selected window, because buffer makes a few jumps there. The non-selected window remain non-selected.

Tested with: 

pixel-scroll-precision-mode enabled
pixel-scroll-mode disabled
mouse-wheel-mode enabled/disabled

emacs 29.4
archlinux
xfwm4 4.18.0-4