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
floof58_ has joined #wayland
floof58 has quit [Ping timeout: 480 seconds]
alarumbe has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<DemiMarieObenour[m]>
How does XWayland handle double buffering?
<DemiMarieObenour[m]>
Also, how does Wayland in general handle server-initiated resizes? Is there a way to do so without any glitches?
moodman has quit []
<kennylevinsen>
It is handled by informing the client that a new size has been requested through a configure event.
<kennylevinsen>
It is glitch free in that nothing happens until the client submits a new buffet with content in the new size
<kennylevinsen>
(the window size is always the size of the last submitted buffer)
<DemiMarieObenour[m]>
What happens to the pointer during that time?
<kennylevinsen>
Whatever the user does with it and whatever the application sets the cursor buffer to. If the application is too slow to render, it'll lack behind during resize.
<DemiMarieObenour[m]>
Gotcha
hendursa1 has quit []
hendursaga has joined #wayland
ivan81 has quit [Quit: ivan81]
V_ is now known as V
<DemiMarieObenour[m]>
Is it a protocol error for a client to damage a surface and then commit without having submitted a new buffer, if the old buffer has not been released yet?
dcz has quit [Ping timeout: 480 seconds]
dcz has joined #wayland
<kennylevinsen>
DemiMarieObenour[m]: it's a no-op, as damage applies to the pending buffer of which there would be none.
rasterman has joined #wayland
dcz has quit [Ping timeout: 480 seconds]
<DemiMarieObenour[m]>
kennylevinsen: what about attaching a buffer that is still in use?
hardening has quit [Ping timeout: 480 seconds]
<kennylevinsen>
DemiMarieObenour[m]: that would be pointless as you are not allowed to mutate a buffer before it has been released, but I believe the wl_surface::attach comment about attaching a single buffer to multiple surfaces applies about weirdness.
<kennylevinsen>
(Mutating a buffer when you are not allowed to generally leads to the application glitching as damage regions are incorrect.)