Bug 256995

Summary: Switch Window mouse action does not work when assigned to “Vertical Scroll”
Product: [Plasma] plasma4 Reporter: Kai Uwe Broulik <KaiUweBroulik2>
Component: containment-desktopAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: asraniel, chanika
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kai Uwe Broulik 2010-11-15 18:03:33 UTC
Version:           unspecified (using Devel) 
OS:                Linux

There is a mouse action “Switch window” which triggers a window list on the desktop. When assigned to vertical scroll (scrolling with mouse wheel) nothing happens. Either this menu should appear anyway or enable you to really cycle through the windows. Or remove it from the selection menu when action is Vertical Scroll.

Reproducible: Always
Comment 1 Martin Kampas 2011-01-08 08:58:04 UTC
I haven't personally tried with vertical scroll, but for me it does not work with left and middle button click. Right click is OK.
Comment 2 Kai Uwe Broulik 2011-01-08 13:26:24 UTC
What I was talking about is that if you assign Switch virtual desktops to vertical scroll, you can scroll through the windows. When assigning switch windows it does nothing and not cycle through windows. But this can also be by design, well since a restoring maximizing window would interfere with that. But scrolling should at least trigger the same menu as when clicking the middle button.
Comment 3 Chani 2011-01-08 13:36:19 UTC
it's not by design... it's code I forgot to finish, apparently. :)

void SwitchWindow::wheelEvent(QGraphicsSceneWheelEvent *)
{
    //TODO somehow find the "next" or "previous" window
    //without changing hte window order (don't want to always go between two windows)
}

it sounds like I wanted behaviour like alt-tab, but I'm not sure that would be possible with just wheel events.
Is anyone interested in working on this? :)
Comment 4 Aaron J. Seigo 2011-12-06 22:59:41 UTC
Git commit d4f7697745eecc6fe32aaab7c15d0e9977ab59f4 by Aaron Seigo.
Committed on 06/12/2011 at 23:58.
Pushed by aseigo into branch 'master'.

implement wheel scrolling between windows

BUG:256995

M  +55   -2    plasma/generic/containmentactions/switchwindow/switch.cpp

http://commits.kde.org/kde-workspace/d4f7697745eecc6fe32aaab7c15d0e9977ab59f4