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

Add Wayland decorations strategy #3454

Merged
merged 29 commits into from
Jul 3, 2024

Conversation

tarek-y-ismail
Copy link
Contributor

@tarek-y-ismail tarek-y-ismail commented Jul 1, 2024

Fixes the misunderstandings of the doomed #3453.

@tarek-y-ismail tarek-y-ismail self-assigned this Jul 1, 2024
@tarek-y-ismail tarek-y-ismail changed the base branch from main to wayland-server-side-decorations July 1, 2024 13:01
@tarek-y-ismail tarek-y-ismail force-pushed the wayland-server-side-decorations-strategy branch from e95d038 to 7d848b0 Compare July 1, 2024 13:07
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 19.23077% with 63 lines in your changes missing coverage. Please review.

Project coverage is 77.36%. Comparing base (6f465ad) to head (fc2d435).
Report is 359 commits behind head on main.

Files with missing lines Patch % Lines
...er/frontend_wayland/xdg_decoration_unstable_v1.cpp 12.82% 34 Missing ⚠️
src/miral/decorations.cpp 0.00% 23 Missing ⚠️
src/server/default_server_configuration.cpp 50.00% 4 Missing ⚠️
src/server/server.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3454      +/-   ##
==========================================
- Coverage   77.41%   77.36%   -0.06%     
==========================================
  Files        1074     1076       +2     
  Lines       68854    68911      +57     
==========================================
+ Hits        53304    53311       +7     
- Misses      15550    15600      +50     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

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

A lot of tweaks, but this is the right idea

src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
src/server/symbols.map Show resolved Hide resolved
src/include/server/mir/decoration_strategy.h Outdated Show resolved Hide resolved
src/core/symbols.map Outdated Show resolved Hide resolved
src/include/server/mir/decoration_strategy.h Show resolved Hide resolved
@tarek-y-ismail tarek-y-ismail force-pushed the wayland-server-side-decorations-strategy branch from bd17e18 to 3a75b0f Compare July 2, 2024 11:51
@tarek-y-ismail
Copy link
Contributor Author

I've got some questions:

  • Any suggestions for better naming?
  • Declaring Self: Is it to not have to recompile the header and all files that depend on it when changes are made?
  • Is to location of decoration_strategy.h as of the latest commit correct? (in the core module, not the server module. I couldn't include it from there)

Base automatically changed from wayland-server-side-decorations to main July 2, 2024 16:42
Copy link
Collaborator

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

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

Some tidying up needed, but looking good

include/core/mir/decoration_strategy.h Outdated Show resolved Hide resolved
include/miral/miral/decorations.h Outdated Show resolved Hide resolved
include/miral/miral/decorations.h Outdated Show resolved Hide resolved
src/core/symbols.map Outdated Show resolved Hide resolved
src/miral/decorations.cpp Outdated Show resolved Hide resolved
src/miral/decorations.cpp Outdated Show resolved Hide resolved
src/miral/symbols.map Outdated Show resolved Hide resolved
src/miral/symbols.map Outdated Show resolved Hide resolved
src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
src/server/symbols.map Outdated Show resolved Hide resolved
@AlanGriffiths
Copy link
Collaborator

This branch has conflicts that must be resolved

Probably easiest to rebase on main

tarek-y-ismail and others added 3 commits July 3, 2024 12:43
Also, changed `DecorationStrategy::Self` to inherit from
`DecorationStrategy` and cleaned up the code a bit.
@tarek-y-ismail tarek-y-ismail marked this pull request as ready for review July 3, 2024 09:55
@tarek-y-ismail tarek-y-ismail requested a review from a team as a code owner July 3, 2024 09:55
Copy link
Collaborator

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

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

A little more tidy-up

include/miral/miral/decorations.h Outdated Show resolved Hide resolved
src/include/server/mir/decoration_strategy.h Outdated Show resolved Hide resolved
src/server/symbols.map Show resolved Hide resolved
@AlanGriffiths
Copy link
Collaborator

There's a bunch of build failures: I think you need to run cmake --build build --target regenerate-miral-debian-symbols

Copy link
Collaborator

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

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

I am suggesting a little more documentation of miral::Decorations, but looks good

include/miral/miral/decorations.h Show resolved Hide resolved
Copy link
Contributor

@mattkae mattkae left a comment

Choose a reason for hiding this comment

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

One teeny suggestion about leaking in a switch (technically, although it hardly matters)

src/server/frontend_wayland/xdg_decoration_unstable_v1.cpp Outdated Show resolved Hide resolved
@tarek-y-ismail tarek-y-ismail requested a review from mattkae July 3, 2024 15:08
Copy link
Contributor

@mattkae mattkae left a comment

Choose a reason for hiding this comment

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

I am happy with this 😄

@AlanGriffiths AlanGriffiths enabled auto-merge July 3, 2024 15:15
@AlanGriffiths AlanGriffiths added this pull request to the merge queue Jul 3, 2024
Merged via the queue into main with commit 468a852 Jul 3, 2024
32 of 36 checks passed
@AlanGriffiths AlanGriffiths deleted the wayland-server-side-decorations-strategy branch July 3, 2024 15:50
@AlanGriffiths AlanGriffiths mentioned this pull request Sep 9, 2024
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