Skip to content

List window previews horizontally if panel is horizontal

Currently if window previews are enabled they're always listed vertically. This looks strange when the panel is horizontal (see screenshot below) as most other OSes and desktops with taskbar previews display them horizontally in this case.

horizontal-preview-before

This MR automatically changes the orientation of the Group Menu to horizontal if the panel is horizontal and window previews are enabled, like so:

horizontal-preview

If the panel is vertical, the window previews stay vertical like before, as this makes more sense:

vertical-preview

If window previews are disabled, the Group Menu stays vertical like before even if the panel is horizontal, as this is more space-efficient:

horizontal-no-preview

Merge request reports