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

Use WindowPositioner for panel positions #2109

Merged
merged 13 commits into from
Dec 7, 2024

Conversation

leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Nov 3, 2024

This will also allow to do a bit better architecture in #2103 where instead of changing barriers on setting hide mode we change on changing anchor which is the actual reason we would need to resetup.


window_positioner = new WindowPositioner (display, window, WindowPositioner.Position.from_anchor (anchor));

notify["anchor"].connect (() => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Btw the notify here is also useful because we don't want the handler to run the first time it's set (i.e. with the constructor).

@leolost2605
Copy link
Member Author

I've been running this quite a bit now so it should be ready for review and testing.
Unfortunately we have to do a little workaround to avoid API breakage with wingpanel and dock but that can be removed in the next major release.

@leolost2605 leolost2605 marked this pull request as ready for review November 22, 2024 16:52
@leolost2605 leolost2605 requested a review from a team November 22, 2024 16:52
src/ShellClients/WindowPositioner.vala Show resolved Hide resolved
src/ShellClients/PanelWindow.vala Outdated Show resolved Hide resolved
src/ShellClients/PanelWindow.vala Outdated Show resolved Hide resolved
src/ShellClients/PanelWindow.vala Outdated Show resolved Hide resolved
src/ShellClients/ShellClientsManager.vala Show resolved Hide resolved
@leolost2605 leolost2605 requested a review from lenemter December 7, 2024 11:22
@lenemter lenemter merged commit 9d0e352 into main Dec 7, 2024
5 checks passed
@lenemter lenemter deleted the leolost/panel-window-use-window-positioner branch December 7, 2024 12:09
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.

3 participants