-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Struts with pantheon protocol #1820
Conversation
This is quite hacky but this open the way to using the pantheon-desktop-shell protocol.
ccd83f5
to
87407ec
Compare
@@ -243,7 +247,55 @@ namespace Gala { | |||
return; | |||
} | |||
|
|||
// TODO | |||
Meta.Side anchor_side = TOP; | |||
switch (anchor) { |
There was a problem hiding this comment.
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
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. |
I thought about changing dock behavior from auto hide to always show and back 🤷 |
6701c3d
to
f4935ee
Compare
f4935ee
to
96eb93a
Compare
d25ee87
to
bcc2f0e
Compare
bcc2f0e
to
2175085
Compare
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
andunmake_exclusive
to closest resemble what's actually happening but it can be changed to something likeset_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)