https://bugs.kde.org/show_bug.cgi?id=427122

--- Comment #4 from ircha...@airmail.cc ---
Created attachment 137444
  --> https://bugs.kde.org/attachment.cgi?id=137444&action=edit
patch to change the behavior

(In reply to Nate Graham from comment #3)
> Probably applets/taskmanager/package/contents/ui/code/tools.js in the
> plasma-desktop repo, but I'm not 100% sure.

It indeed was, I had a lot of trouble navigating the code, here's a pretty bad
hack that works for what I wanted. This should be taken into account:

-If you scroll on empty space that belongs to the applet, or on a pinned but
unopened program, it will still scroll to the next-previous program (I'd rather
it did nothing in those scenarios, but can't really be bothered).
-I think said scrolling might have been reverted compared to how it would
normally work.

If someone else wants to do something t hat isn't a complete hack, take into
account that: 
-"anchor" represents the program we're scrolling over.
-tasksModel.requestActivate(target) is what actually sets the focus.
-and target is an element of the array taskIndexList.

I couldn't find a better way to find the position of anchor in TaskIndexList so
I used "pushCounter".

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to