Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struts with pantheon protocol #1820

Closed

Conversation

leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Jan 5, 2024

This PR adds a PanelManager that handles struts for panel windows and in the future possibly setting the anchor for a panel. The struts are already implemented and working, set_anchor is still waiting for a mutter MR.

Regarding the actual API it can be easily changed. Currently it's make_exclusive and unmake_exclusive to closest resemble what's actually happening but it can be changed to something like set_exclusive (bool exclusive) or KDE's way of setting a flag how the panel should behave.

Opinions on this? :)

This PR is based on #1705 (the PR is currently against that branch to reduce the diff)

@@ -243,7 +247,55 @@ namespace Gala {
return;
}

// TODO
Meta.Side anchor_side = TOP;
switch (anchor) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure whether we can just cast this or whether mutters enum order is likely to change

@Marukesu
Copy link
Contributor

Is there a use case for changing the exclusive are after creating the panel surface?

I believe both wingpanel and dock won't change it after set the first time. so making exclusive a parameter on get_panel() should be enough.

@leolost2605
Copy link
Member Author

I thought about changing dock behavior from auto hide to always show and back 🤷

@tintou tintou force-pushed the tintou/pantheon-desktop-shell branch from 6701c3d to f4935ee Compare February 15, 2024 22:33
@tintou tintou force-pushed the tintou/pantheon-desktop-shell branch from f4935ee to 96eb93a Compare February 29, 2024 12:08
@tintou tintou force-pushed the tintou/pantheon-desktop-shell branch from d25ee87 to bcc2f0e Compare May 23, 2024 21:50
@tintou tintou force-pushed the tintou/pantheon-desktop-shell branch from bcc2f0e to 2175085 Compare May 24, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants