gwl: Add overflow support through slide/scroll list#13352
gwl: Add overflow support through slide/scroll list#13352anaximeno wants to merge 31 commits intolinuxmint:masterfrom
Conversation
|
This feature is great, it's similar to dash to dock and dash to panel. Hopefully it will be implemented in the stable version. |
|
Didn't actually try it yet, but it looks pretty slick. Wonder if you could use vfade when the slider button shows up as a bit more of a visual cue. |
21564ff to
5da320c
Compare
I'll give it a try and see if I can get it to work with it. |
|
@JosephMcc I've updated the implementation to use the native Thanks to that and getting St.ScrollView to work, I can also use the vfade/hfade in the edges instead of the slider buttons (as you suggested), I've updated the video demonstration above to represent that. In general I think this PR is ready for testing and consideration, and I'll be continuing to test and it sending adjustments if necessary until the next merge window. Regards. |
…orkspaces To find the new app position in the container instead of using actor.x we are summing the size of each preceding appGroup until the current app to focus because actor.x would report 0 some times.
This was triggering GLib Critical error in the logs.
…after being removed already
…uttons visibility This avoids issues with improper representation of the current allocation after the buttons are hidden.
… on orientation changed
…to debounce setting scrollActive state as inactive to avoid triggering the menu during the scroll animation
93b827c to
f70951b
Compare
This avoids an issue where during workspace switching some times a minimized window would visually have the focused window style when it shouldn't.
1f0031b to
8198512
Compare
This is useful when switching to a new workspace or the applet is reloaded so it guarantees user will at least be aware of opened windows that could otherwise be hidden if the scroll state is mantained.
If there's no opened windows just keep the current scroll state.
I've also decided to change the scroll key name, this with the goal of guaranteeing that the scroll app window list will be set as default for all users, those that want other options, or none, can switch back.
|
Thanks for working on this! There's one thing that would be useful, and that's indicators that more buttons exist in either direction of the panel. Without a visual cue, the user may be unaware that more windows are open. |
Uhm, I'll consider bringing back the slider buttons that I had previously then, and use them along the fade, since the fade can be less perceptible in some cases, and seems to not be used even in some themes. |
9dad14c to
0d4affe
Compare
0d4affe to
1b0f268
Compare
|
I get really weird behavior when scrolling, if 'group windows' is disabled, and I have 'cycle apps' or 'cycle windows' as the scroll action... this may be pre-existing, I don't normally use this applet. I also get a lot of 'access-after-disposed' warnings if I close a workspace that had windows on it. This works well, but:
Claude review fwiw: |
|
I'll take a look. |
gwl: Update name from box to container for clarity
Looks better and is consistent with what is used in the alt-tab window switcher for example when it reaches the limits of the screen.
|
@mtwebster there's one thing I noticed, I'm not sure what causes it, but it seems that for some reason, when a horizontal fade is active on either side of the scroll view in gwl, it triggers some hfade on the same side on scrollviews in popup menus, which makes the handle in the popup menu not (or less) visible due to the fade over it: Before having hfade active in gwl
After having hfade active in gwl
I wonder if it is some sort of rendering issue? I don't see why the scrollview from here should affect the other one in the popup menu. |
|
An interesting issue: since 22.3 came out, I noticed that the language/keyboard indicator also gets contracted when a lot of apps push the system tray out of the screen, but only if the indicator consists of letters - the flag is displayed properly. While the keyboard indicator is not part of the Window list applet, I'm not sure if it can be solved here. But since a growing number of apps in the list can push the keyboard indicator, it would be nice to take a look at this as well, even if only to confirm that it's off-scope here. |



closes #11540
solves https://github.com/orgs/linuxmint/discussions/82
Example of how it should work
output.mp4