Bug 419222 - XdgOutput v2 doesn't send the name in a spec compliant way
Summary: XdgOutput v2 doesn't send the name in a spec compliant way
Status: RESOLVED FIXED
Alias: None
Product: kwayland
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 5.68.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Flöser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-25 11:08 UTC by David Edmundson
Modified: 2021-07-11 23:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Edmundson 2020-03-25 11:08:43 UTC
Vlad:

Unfortunately, I have bad news. We're screwed. I poked people to clarify
the language that is used in many specs. Here's the summary: if a spec
says that an event is sent after creating an object and nowhere it says
that the event is optional, then the compositor _must_ send the event.

xdg_output::description is an optional event because the spec mentions
it. On the other hand, xdg_output::name is mandatory because the spec
has no a single word about it being optional.


Dave:

Pragmatically we know what every toolkit does and it's fine in reality so no need to panic, but we should fix it.

I'll add some overload in Display for kwin to request the version number or something.
Comment 1 David Edmundson 2020-03-25 11:13:49 UTC
Alternatively I can do

if (name.isEmpty()) {
   name = "Screen " + i++;
}

Which is all Qt would be doing client side anyway.