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

wayland: Launch notifications server as a wayland client #1882

Merged
merged 11 commits into from
Apr 2, 2024

Conversation

leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Mar 22, 2024

Introduce a ShellClientManager that currently only creates the notificationsclient. However we will need something like this anyways for the wayland protocol since all clients that want to use it (or at least the panel/dock parts of it) have to be launched as wayland clients.

I'll also try to migrate the daemonmanager to ManagedClient as well in a future PR.

This also helps to keep the code added to WindowManager as little as possible by taking responsibility from it compared to #1863 since it's already a huge class anyways.

Closes #1863
Fixes #1693

Going the route of the NOTIFICATION_DATA_KEY is a bit of a workaround and once I have some more time i'll try to get something like make_notification merged in upstream mutter however since AFAIK we now are too late for 46 anyways that would be OS 9 material and I think the few lines of code are good enough for now.

Any feedback regarding this approach especially with consideration of the upcoming wayland protocol etc. is much appreciated :)

@leolost2605 leolost2605 changed the title Shell Clients wayland: Fix notifications Mar 22, 2024
@leolost2605
Copy link
Member Author

leolost2605 commented Mar 22, 2024

With mutter <46 there is still focus stealing going on however that will be fixed in 46

@leolost2605 leolost2605 marked this pull request as ready for review March 22, 2024 19:02
@leolost2605 leolost2605 requested a review from a team March 22, 2024 19:02
@leolost2605 leolost2605 changed the title wayland: Fix notifications wayland: Launch notifications server as a wayland client Mar 22, 2024
@danirabbit danirabbit requested a review from tintou March 26, 2024 17:25
Copy link
Member

@tintou tintou left a comment

Choose a reason for hiding this comment

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

Looks good to me

@leolost2605 leolost2605 enabled auto-merge (squash) April 2, 2024 10:43
@leolost2605 leolost2605 merged commit 0e88796 into master Apr 2, 2024
3 of 4 checks passed
@leolost2605 leolost2605 deleted the leolosst/shell-clients branch April 2, 2024 10:44
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.

Notifications appear in the center of the screen on Wayland
2 participants