Bug 161174 - Using wheel mouse to scroll a window in the background moves it to focus foreground (again)
Summary: Using wheel mouse to scroll a window in the background moves it to focus fore...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 111984 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-22 20:43 UTC by Andrew Neitsch
Modified: 2009-01-01 23:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Stop giving focus to inactive windows on mouse wheel scroll (523 bytes, patch)
2008-04-22 20:45 UTC, Andrew Neitsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Neitsch 2008-04-22 20:43:35 UTC
Version:            (using KDE 3.5.8)
Installed from:    SuSE RPMs

Bug 19369 fixed this in r109466 back in 2001, but it looks like it broke again when kwin_iii was merged in r251608.

That code (which is the same as HEAD) does wheel exclusion on input to the active window, where the bug is about mouse scrolling giving focus to inactive windows.


Here is a simple patch that makes the focus not change suddenly every time I brush my palm against the scrolling portion of my notebook's touchpad.
Comment 1 Andrew Neitsch 2008-04-22 20:45:58 UTC
Created attachment 24480 [details]
Stop giving focus to inactive windows on mouse wheel scroll
Comment 2 Lubos Lunak 2008-06-06 13:41:08 UTC
SVN commit 817599 by lunakl:

Don't activate inactive windows on wheeling over them.
BUG: 161174



 M  +1 -3      events.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=817599
Comment 3 Ian P. Christian 2008-07-22 14:35:58 UTC
I considered this a feature, not a bug.  Can this be re-opened until there is a config option for this?
Comment 4 Lubos Lunak 2008-07-24 17:08:05 UTC
No, there's really no need to go as far as having mouse wheel focusing configurable. If you want an action for focusing a window window without raising it, set one of the mouse actions that way in kwin configuration.
Comment 5 Tim Landscheidt 2008-12-15 17:21:40 UTC
As there was no reply on bug 164261: How does one do that?
Comment 6 vatbier 2008-12-17 15:11:27 UTC
For me making an underlying window active with the scroll of the mouse was a useful feature in KDE 3.5.9.
Could you please make the mouse wheel focusing configurable? There is no action for mouse wheel in kwin configuration.

Many times I have to type text from some web page or program into a kwrite window.
Scrolling the mouse wheel in KDE 3.5.9 makes the kwrite window active but not raised, so I can use the kwrite window under the top lying window.

In KDE 4.1.3 I changed the policy from "Click to Focus" to "Focus Follows Mouse" but that has other annoyances: if I move the mouse away when typing my root password into a KDE su window, my password gets typed in another window.
So I changed back to "Click to Focus".

Hm, wait: I've just changed Window behavior:Window Actions:Inactive Inner Window:Middle button from "Activate & Pass Click" to "Activate".
And that works as scrolling the mouse wheel in KDE 3.5.9. 
So I'll use the middle button click to make active without raising.
Although I prefer scrolling over a middle button click (scrolling feels easier).
Comment 7 vatbier 2008-12-17 15:17:23 UTC
I'm wrong: no need to change from "Activate & Pass Click" to "Activate".
Middle button with "Activate & Pass Click" also makes active without raising.
Comment 8 Lubos Lunak 2009-01-01 23:40:52 UTC
*** Bug 111984 has been marked as a duplicate of this bug. ***