Bug 419222

Summary: XdgOutput v2 doesn't send the name in a spec compliant way
Product: [Frameworks and Libraries] kwayland Reporter: David Edmundson <kde>
Component: serverAssignee: Martin Flöser <mgraesslin>
Status: RESOLVED FIXED    
Severity: normal CC: kwin-bugs-null
Priority: NOR    
Version: 5.68.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

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.