Skip to content

[Wayland] Add support for autohide - #1584

Merged
lukefromdc merged 5 commits into
mate-desktop:masterfrom
Sunderland93:wayland_autohide
Sep 25, 2026
Merged

lukefromdc merged 5 commits into
mate-desktop:masterfrom
Sunderland93:wayland_autohide

Conversation

@Sunderland93

Copy link
Copy Markdown
Contributor

Tested with 1, 2 and 4 panels. Not tested on multi-monitor setup

@lukefromdc lukefromdc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works mostly as expected. Note that in both x11 and wayland some themes do not show the buttons as visually distinct from the rest of the panel when not clicked on, but all show them with clicked on, some themes visually separate the buttons always, and in all cases the hide arrows are shown.

One issue came up: testing with two panels showing, I found that when a top or left panel was hidden, wayfire's default background showed rather than caja's background.

@Sunderland93

Copy link
Copy Markdown
Contributor Author

Should be fixed now

@lukefromdc

lukefromdc commented Sep 23, 2026 via email

Copy link
Copy Markdown
Member

@Sunderland93

Copy link
Copy Markdown
Contributor Author

Since I can't reproduce this issue - please test latest commit

@lukefromdc lukefromdc left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed it. The only remaining issue is that caja's desktop jumps by the width of the panel while in the process of autohiding/showing a top or left panel. Same as how caja jumps when first adding a top or left panel and always has as far as I know.

Not sure that's even possible to fix however given we don't have the root window background like in x11. Since we have to release the exclusive zone to get the background under it in wayland, the price is that caja jumps while the autohide is in the process of showing or hiding the panel. The start and end positions however are identical. Using the hide buttons creates no such problems, they now work perfectly.

My suspicion is that if we tried to delay taking/releasing the exclusive zone until the auto show/hide process was done, we'd get wayfire's background showing behind the panel during that process.

Note that there have always been issues with panel struts. Not going to let the perfect be the enemy of the good here. If someone does find a way to make caja stay put but still cover the whole background while the panel is autohiding/showing, they can open a new PR for it. Not sure if that would have to be here or in caja itself though, and like I said that may not be possible. Anyway I got no other issues with this after the last commit, merging

@lukefromdc
lukefromdc merged commit 58ac6c1 into mate-desktop:master Sep 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants