applets/taskmanager: scroll tooltip to active window
Currently, the tooltip shows the list of windows belonging to a grouped task always starting at the first item. For some tasks involving many windows the order is meaningful though, so it could be convenient to be able to go to the previous/next window quickly. Similarly, if a user scrolled to a window and selected it, then reconsidered, starting from that window is likely more what the user expects, rather than having to begin scrolling from the beginning again.
This change positions the ListView on showing the tooltip such that if the grouped task contains the currently active window, it will be in the visible range, and at the center if possible.
I'm still a little unsure about this, but it seems like a reasonable request and in my brief testing felt good
Some of my thought about upsides and downsides from the bug report
On the other hand, one could argue that a) the first windows are likely the more important ones and b) the usefulness of the popup is highest if the currently active window is not among them, because switching to it doesn't do anything, so on smaller screens a good amount of the limited screen space for displaying the thumbnail list is wasted on a useless option.Another thing to consider is that media player buttons will only show on the first window (unless we can relatively cleanly identify which particular window is doing the actual playing). So if a user has e.g. multiple browser windows open and there's a video playing in one of them, this would increase the chances that the media player controls are not on screen, reducing their usefulness somewhat.
I'm still inclined to think it's probably worth it; if the user browses the list and selects one of them, it would make sense to me to start from approximately that position if the user hovers the icon again. Will need to see it in practice though, and maybe get feedback from users who use the thumbnail version (I have the thumbnails disabled myself).
I think it could also help the user orient themselves in a long list of thumbnails. This could be made stronger by giving the currently active window a tint or highlight, but I'm not sure it's worth it.
I have thumbnails turned off though, and while I have sometimes many windows of one application open, with the compact form I rarely get it to be scrollable. Feedback from people who see the scrollbars more often would be very welcome.