ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
Guest5588 has quit [Ping timeout: 480 seconds]
mblenc1 has joined #wayland
mblenc has quit [Ping timeout: 480 seconds]
mblenc1 has quit [Read error: Connection reset by peer]
mblenc has joined #wayland
[old]freshgumbubbles[m] has joined #wayland
mblenc1 has joined #wayland
mblenc has quit [Ping timeout: 480 seconds]
mblenc has joined #wayland
utsweetyfish has quit [Remote host closed the connection]
utsweetyfish has joined #wayland
mblenc1 has quit [Ping timeout: 480 seconds]
mboudr35[m] has joined #wayland
nerdopolis has joined #wayland
utsweetyfish has quit [Remote host closed the connection]
<swick[m]>
pushing all the gamescope hacks into wayland protocols...
<swick[m]>
ah well
diamondburned[m] has joined #wayland
fmuellner has quit [Ping timeout: 480 seconds]
karmavil[m] has joined #wayland
windowsxp[m] has joined #wayland
Mershl[m] has joined #wayland
rubo_[m] has joined #wayland
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
JosExpsito[m] has joined #wayland
fmuellner has quit [Ping timeout: 480 seconds]
fmuellner has joined #wayland
fmuellner has quit [Ping timeout: 480 seconds]
rv1sr has joined #wayland
<ifreund>
why does libwayland use wl_display_get_serial() instead of wl_display_next_serial() for the serial passed to the callback from wl_display.sync?
<pq>
that serial stuff is totally bogus altogether, I think
<pq>
left-overs from the pre 1.0 days
<ifreund>
do you feel the same way about validating input event serials for stuff like setting the primary selection?
<pq>
no
<ifreund>
I've discovered a client that passes the serial from the wl_callback from wl_display_sync() instead of the input event serial to set_selection :/
<pq>
Validating input events serials is a necessary concept to solve some race conditions. Only wl_display_*_serial() is totally questionable if it's ever the right answer.
Max1 has joined #wayland
<pq>
ifreund, that sounds like the client is trying to bypass the input serial checks intentionally.
<pq>
like if you would write a command line tool for accessing clipboard contents, or something
<ifreund>
it's a terminal emulator :/ (kitty)
<pq>
which is meant to be impossible for a basic Wayland app
<pq>
sounds like a bug
<ifreund>
yeah, I'll report it in a minute
<pq>
most that I remember of the input serial design is that it is intended to stop clients from doing things when the user has already moved on to do something else and no longer expects the client do stuff
<pq>
but I don't think I've ever known how exactly compositors are supposed to manage the serials to make that work correctly
<pq>
I have a vague recollection that the wl_display_*_serial() API was supposed to help, but in practice found to be lacking because you'd need many different valid serials at the same time for different things.
<pq>
maybe even many different serial counters, I'm not sure
<ifreund>
wlroots has a ring buffer of recent serials and does best-effort validation that seems quite effective in practice
<pq>
that's nice
<ifreund>
and only input event serials are stored in the ring buffer
<ifreund>
it was certainly effective enough to catch kitty's bug here
<pq>
given a compositor likely needs to keep track of multiple valid serials, passing any serial in the wl_display.sync reply is utterly useless.
DemiMarie has joined #wayland
fmuellner has joined #wayland
<pq>
besides, if clients could use wl_display.sync to get the latest valid serial any time, that would thwart the whole idea why input serials exist.
<ifreund>
yeah, it's asking for misuse
DemiMarie is now known as Guest5651
<pq>
so at the very minimum, we should make it clear that input serials are not in any way related to sync serials
<pq>
even better would be to actually document how serials are supposed to work both sides
mblenc has quit [Read error: Connection reset by peer]
leon-anavi has joined #wayland
mblenc has joined #wayland
KingoftheElves[m] has joined #wayland
rajveermalviya[m] has joined #wayland
zhxt[m] has joined #wayland
Shimmy[m] has joined #wayland
junglerobba[m] has joined #wayland
kasper93_ has quit [Remote host closed the connection]
kasper93 has joined #wayland
rgallaispou has left #wayland [#wayland]
tlwoerner has quit [Quit: Leaving]
tlwoerner has joined #wayland
Company has joined #wayland
qaqland has joined #wayland
<Guest5651>
pq: Serial numbers aren’t access tokens as the entropy is too low. I don’t see a problem with being able to get the latest valid serial, but often the answer should be that no such serial exists.
YHNdnzj[moz] has joined #wayland
ttancos[m] has joined #wayland
utsweetyfish has quit [Remote host closed the connection]
utsweetyfish has joined #wayland
Guest5655 has quit [Remote host closed the connection]
cool110 has joined #wayland
cool110 is now known as Guest5675
MrCooper has quit [Remote host closed the connection]
MrCooper has joined #wayland
cmichael has quit [Quit: Leaving]
leon-anavi has quit [Quit: Leaving]
qyliss has quit [Ping timeout: 480 seconds]
mblenc1 has joined #wayland
mblenc has quit [Ping timeout: 480 seconds]
mblenc has joined #wayland
mblenc1 has quit [Ping timeout: 480 seconds]
qyliss has joined #wayland
SeunghunLee[m] has joined #wayland
Guest5651 is now known as DemiMarie
sevz has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
Coelacanthus[m]1 has joined #wayland
st3r4g has quit [Quit: おやすみ]
YaLTeR[m] has joined #wayland
botiapa[m] has joined #wayland
q234rty[m][m] has joined #wayland
mblenc has quit [Ping timeout: 480 seconds]
mblenc has joined #wayland
PavelNasevich[m] has joined #wayland
nurupo has quit [Quit: nurupo.ga]
nurupo has joined #wayland
i509vcb has joined #wayland
hch12907 has joined #wayland
nielsdg has joined #wayland
iomari891 has quit [Ping timeout: 480 seconds]
heeen[m] has joined #wayland
gallo has quit [Remote host closed the connection]
nazarewk[m] has joined #wayland
Moprius has joined #wayland
ujineli[m] has joined #wayland
Moprius has quit [Quit: bye]
mblenc1 has joined #wayland
mblenc has quit [Ping timeout: 480 seconds]
Nova[m] has joined #wayland
mblenc1 has quit [Ping timeout: 480 seconds]
elderbear has quit [Quit: elderbear]
elderbear has joined #wayland
sergi1 has joined #wayland
nerdopolis has joined #wayland
rasterman has quit [Quit: Gettin' stinky!]
elderbear has quit [Quit: elderbear]
i509vcb has quit [Quit: Connection closed for inactivity]
mblenc has joined #wayland
mblenc1 has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
mblenc has quit [Ping timeout: 480 seconds]
elderbear has joined #wayland
elderbear has quit [Remote host closed the connection]
elderbear has joined #wayland
elderbear has quit [Remote host closed the connection]
elderbear has joined #wayland
mblenc has joined #wayland
mblenc1 has quit [Ping timeout: 480 seconds]
mvlad has quit [Remote host closed the connection]
basemale has joined #wayland
fossdd has quit [Remote host closed the connection]
fossdd has joined #wayland
i509vcb has joined #wayland
fossdd has quit [Remote host closed the connection]
fossdd has joined #wayland
furyishere[m] has joined #wayland
Saijin_Naib[m] has joined #wayland
glennk has quit [Ping timeout: 480 seconds]
emilio[m] has joined #wayland
sima has quit [Ping timeout: 480 seconds]
lsd|2 has joined #wayland
utsweetyfish has quit [Remote host closed the connection]