Add XDG WmBase support
ClosedPublic

Authored by davidedmundson on Jun 14 2018, 11:37 AM.

Details

Reviewers
romangg
Group Reviewers
Plasma
Commits
R108:fcf9acfec505: Add XDG WmBase support
Test Plan

Compiled latest GTK
Ran gtk4-demo and used WAYLAND_DEBUG to confirm it used the correct shell
tested a top level and a popup

Diff Detail

Repository
R108 KWin
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 2
Build 2: arc lint + arc unit
Restricted Application added a project: KWin. · View Herald TranscriptJun 14 2018, 11:37 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
davidedmundson requested review of this revision.Jun 14 2018, 11:37 AM
zzag added a subscriber: zzag.Jun 14 2018, 11:53 AM
zzag added inline comments.
autotests/integration/kwin_wayland_test.h
134

You could put extra comma for cleaner future history. E.g.

enum class ShellSurfaceType {
    WlShell,
    XdgShellV5,
    XdgShellV6,
    XdgShellStable,
};
graesslin added inline comments.
autotests/integration/kwin_wayland_test.h
134

I disagree. comma at end is just bad style which is accepted by compilers.

zzag added a comment.Jun 14 2018, 6:19 PM

I disagree. comma at end is just bad style which is accepted by compilers.

by C++ standard. draft ;-)

Could you please explain why trailing commas are bad?

In D13530#278467, @zzag wrote:

I disagree. comma at end is just bad style which is accepted by compilers.

by C++ standard. draft ;-)

Could you please explain why trailing commas are bad?

It's not bad, just IMHO bad style. To me commas separate list members. After the last member a comma doesn't make sense. If I see code where there's a comma after the last member it always looks sloppy to me. A Dev reordered the code and didn't clean up or copy and paste without cleaning up. As you might have noticed I value clean code extremely.

I also value not affecting other lines. Thus in class initializers I prefer comma going first over trailing to minimize changes. But for last enum member I prefer no comma even if it means the next addition causes an unaffected line to change too.

mart added a subscriber: mart.Jun 19 2018, 8:51 AM

+1, no stray commas, please :)
(should probably be added in the kdelibs coding style page)

romangg added a subscriber: romangg.Jul 2 2018, 8:50 AM

This should depend on D13510 and not the other way around.

romangg accepted this revision.Jul 4 2018, 6:57 AM
This revision is now accepted and ready to land.Jul 4 2018, 6:57 AM
davidedmundson closed this revision.Aug 4 2018, 5:09 PM