ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput | register your nick to speak
co1umbarius has joined #wayland
columbarius has quit [Ping timeout: 480 seconds]
catman has quit [Remote host closed the connection]
catman has joined #wayland
ybogdano has quit [Read error: Connection reset by peer]
catman has quit [Remote host closed the connection]
nerdopolis has quit [Ping timeout: 480 seconds]
catman has joined #wayland
cool110_ has quit [Remote host closed the connection]
cool110 has joined #wayland
The_Company has quit []
Lucretia has quit [Remote host closed the connection]
Lucretia has joined #wayland
zebrag has joined #wayland
zebrag has quit [Quit: Konversation terminated!]
jgrulich has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
hardening has joined #wayland
mvlad has joined #wayland
danvet has joined #wayland
markbolhuis has quit [Quit: markbolhuis]
jgrulich has quit [Remote host closed the connection]
jgrulich has joined #wayland
dcz has joined #wayland
WhizzWr has quit [Quit: Bye!]
WhizzWr has joined #wayland
dcz has quit [Ping timeout: 480 seconds]
rv1sr has joined #wayland
markbolhuis has joined #wayland
markbolhuis has quit []
jgrulich has quit [Remote host closed the connection]
rasterman has joined #wayland
PuercoPop has joined #wayland
jgrulich has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
MrCooper has quit [Remote host closed the connection]
MrCooper has joined #wayland
dcz has joined #wayland
dos1 has quit [Quit: Kabum!]
dos1 has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
vanveldt has joined #wayland
fmuellner has joined #wayland
fmuellner_ has joined #wayland
fmuellner has quit [Ping timeout: 480 seconds]
Company has joined #wayland
nerdopolis has joined #wayland
remyabel2 has joined #wayland
ppascher has quit [Quit: Gateway shutdown]
cool110 has quit [Remote host closed the connection]
vanveldt has quit [Ping timeout: 480 seconds]
cool110 has joined #wayland
vanveldt has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
floof58 has quit [Quit: floof58]
floof58 has joined #wayland
nerdopolis has joined #wayland
hardening has quit [Read error: Connection reset by peer]
fmuellner has joined #wayland
manuel1985 has joined #wayland
fmuellner_ has quit [Ping timeout: 480 seconds]
remyabel2 has quit [Quit: WeeChat 3.5]
vanveldt has quit [Ping timeout: 480 seconds]
remyabel2 has joined #wayland
danvet has quit [Ping timeout: 480 seconds]
manuel1985 has quit [Quit: Leaving]
<DemiMarie>
Could/should there be a protocol for allowing XWayland to tunnel X11 inside Wayland?
<DemiMarie>
There are a huge number of cases where the lack of ordering between X11 and Wayland events causes bugs which require additional roundtrips to fix.
danvet has joined #wayland
<kennylevinsen>
I'm not sure how that would even work. x clients talk directly to xwayland - where would the protocol be used?
<DemiMarie>
Between XWayland and the compositor
<kennylevinsen>
so just for the xwm stuff?
<kennylevinsen>
maybe, but all of the xcb stuff would have to support using the tunnel and at that point you could also argue just porting the messages to be a native wayland protocol...
<emersion>
what kind of issues are we talking about here?
<emersion>
MrCooper: ah, what i mean is that the code comes from gamescope
<emersion>
since gamescope is DRM master it's fine
<emersion>
but it's not fine for Xwayland
<DemiMarie>
kennylevinsen: Yes, just for the XWM stuff
<emersion>
the code == that whole function, see comment at the top
<MrCooper>
emersion: ah right, makes sense
danvet has quit [Ping timeout: 480 seconds]
<DemiMarie>
emersion: All of them ๐
<DemiMarie>
That reminds me: XCB does not perform bounds checking on replies
<DemiMarie>
You need to check that the server actually sent enough bytes (as measured by the length field in the response or event)
<dottedmag>
DemiMarie: please file a bug?
<DemiMarie>
dottedmag: if you mean against XCB, I already did.
<DemiMarie>
It wonโt be fixed in the near term, though.
<daniels>
one of the issues with tunneling is that Wayland is very much all about bounded volumes, whereas X11 can generate a potentially infinite amount of spam on the socket, so there's a mismatch there
<DemiMarie>
daniels: then tunnel the other way around?
<daniels>
but apart from that, we're too far down the line for it to be too useful - everyone's typed out the code to deal with the two connections being disjoint, it works well, and unless/until everyone can require a version of Xtrans/XCB/Xwayland/etc which can handle that tunneling, they'd still need to keep that code around too, so practically speaking it would just add more complexity for the foreseeable future
<DemiMarie>
Valid
<DemiMarie>
Anyway, Wayland compositors need to start doing validation of what the X server sends them
<dottedmag>
DemiMarie: I'm sure the authors of compositors will gladly accept patches
<dottedmag>
Slightly tongue-in-cheek, of course, but compositors-not-trusting-X-servers is a very specific case.
<emersion>
DemiMarie: easier to just disable Xwayland
<DemiMarie>
emersion: yes, which is why I have been pushing so hard about getting Xwayland to *not* require compositor support
<MrCooper>
another possibility is moving the xwm code to a separate process
<DemiMarie>
MrCooper: exactly!
<DemiMarie>
the xwm code should be in a separate process that only has access to standard, unprivileged Wayland protocols
<emersion>
i am not sure this is what MrCooper means
<MrCooper>
indeed it's not
<DemiMarie>
MrCooper: it is what the various sandboxes need
<DemiMarie>
There needs to be a time when a Flatpak that uses XWayland gets no more access than one that does not.
<DemiMarie>
Yes, some apps will break, but I suspect 95+% will not
hardening has joined #wayland
<DemiMarie>
And those that do could probably run under rootful XWayland anyway.
<DemiMarie>
Yes, it can use compositor support if it exists, but it should be able to fall back to heuristics otherwise.
<dottedmag>
DemiMarie: What about that O'Caml reimplementation? Does it miss anything (apart from being written in O'Caml?)
<i509VCB>
I'm not sure if the intention Demi has is to have that mode be part of xwayland?
<MrCooper>
with dma-buf feedback v4, is it valid for the compositor to list a certain modifier in per-surface feedback but not in the default feedback?
<DemiMarie>
i509vcb: having it part of XWayland would be ideal, yes
fmuellner has quit [Remote host closed the connection]
<i509VCB>
I believe that was the intention of surface feedback. If you change to full screen and the compositor does direct scanout, the compositor can let you use all modifiers for the display hardware instead of using what is common between multiple gpus because you could move a surface.
<emersion>
MrCooper: compositors must always have a fallback plan
<emersion>
but i guess one could design a compositor where a surface is locked to a specific screen
gallo has quit []
<emersion>
in which case, on a multi-GPU setup, maybe more modifiers would be available for that surface
gallo has joined #wayland
<MrCooper>
i509VCB: IME it's more like the default feedback has the same scanout capable modifiers, but also more modifiers which are preferred for rendering, but not scanout capable
<MrCooper>
emersion: makes sense
<daniels>
in the 98% case you'd definitely not do that, because as soon as a notification pops up or the user alt-tabs away, the surface suddenly becomes a void
<daniels>
but in fixed usecases with hardware that would benefit from that, where you 'know' that won't happen, you can do it
danvet has joined #wayland
vanveldt has joined #wayland
vanveldt has quit [Remote host closed the connection]
vanveldt has joined #wayland
ybogdano has joined #wayland
jgrulich has quit [Ping timeout: 480 seconds]
dcz has quit [Ping timeout: 480 seconds]
Dami-star has joined #wayland
Dami_Lu has quit [Ping timeout: 480 seconds]
Dami-star has quit [Read error: Connection reset by peer]