kcz has joined #wayland
kcz has quit [Remote host closed the connection]
RazzakovR-t has joined #wayland
RazzakovR-t has quit [Remote host closed the connection]
outofsorts has joined #wayland
outofsorts has quit [Remote host closed the connection]
klltkr has quit [Ping timeout: 480 seconds]
columbar1 has joined #wayland
columbarius has quit [Ping timeout: 480 seconds]
Roq has joined #wayland
Roq has quit [Remote host closed the connection]
q6617 has joined #wayland
q6617 has quit [Remote host closed the connection]
srh1605 has quit [Quit: Leaving]
srh1605 has joined #wayland
srh1605 has quit []
srh1605 has joined #wayland
aredridel4 has quit []
aredridel4 has joined #wayland
pastly-antispam has quit [autokilled: Suspected spammer. Mail support@oftc.net with questions (2021-06-15 02:03:48)]
pastly-antispam has joined #wayland
boistordu has joined #wayland
boistordu_old has quit [Ping timeout: 480 seconds]
ephemera_ has joined #wayland
ephemera_ has quit [Remote host closed the connection]
khfeng has joined #wayland
Galiley-t has joined #wayland
Galiley-t has quit [Remote host closed the connection]
astorije670 has joined #wayland
astorije670 has quit [Remote host closed the connection]
blue__penquin has joined #wayland
blue__penquin has quit []
dcz_ has joined #wayland
tlwoerner__ has joined #wayland
tlwoerner_ has quit [Ping timeout: 480 seconds]
dcz has joined #wayland
srh16051 has joined #wayland
srh1605 has quit [Ping timeout: 480 seconds]
shankaru has joined #wayland
dcz_ has quit [Ping timeout: 480 seconds]
srh16051 has quit []
srh1605 has joined #wayland
tzimmermann has joined #wayland
floof58 has quit [Ping timeout: 480 seconds]
floof58 has joined #wayland
mishanti1 has joined #wayland
mishanti1 has quit [Remote host closed the connection]
srh1605_ has joined #wayland
DieHardBios has joined #wayland
DieHardBios has quit [Remote host closed the connection]
srh1605 has quit [Ping timeout: 480 seconds]
srh1605 has joined #wayland
hardening has joined #wayland
srh1605_ has quit [Ping timeout: 480 seconds]
tlwoerner__ has quit []
tlwoerner has joined #wayland
floof58 has quit [Remote host closed the connection]
HugLifeTiZ has joined #wayland
HugLifeTiZ has quit [autokilled: spambot. Dont mail support@oftc.net with questions (2021-06-15 06:12:03)]
pnowack has joined #wayland
pnowack has quit []
pnowack has joined #wayland
macinsight has joined #wayland
macinsight has quit [autokilled: spambot. Dont mail support@oftc.net with questions (2021-06-15 06:23:39)]
RayS28 has joined #wayland
RayS28 has quit [autokilled: Suspected spammer. Mail support@oftc.net with questions (2021-06-15 06:26:49)]
danvet has joined #wayland
sca has joined #wayland
checkbot has joined #wayland
checkbot has quit [autokilled: spambot. Dont mail support@oftc.net with questions (2021-06-15 06:41:09)]
floof58 has joined #wayland
pnowack has quit [Quit: pnowack]
pnowack has joined #wayland
pnowack has quit [Quit: pnowack]
pnowack has joined #wayland
pnowack has quit []
pnowack has joined #wayland
pnowack has quit [Read error: Connection reset by peer]
pnowack has joined #wayland
thibaut670 has joined #wayland
thibaut670 has quit [Remote host closed the connection]
pnowack has quit [Quit: pnowack]
pnowack has joined #wayland
pnowack has quit []
pnowack has joined #wayland
pnowack has quit [Remote host closed the connection]
pnowack has joined #wayland
rasterman has joined #wayland
srh1605 has quit [Ping timeout: 480 seconds]
pochu has joined #wayland
rgallaispou has joined #wayland
pnowack has quit [Quit: pnowack]
pnowack has joined #wayland
MrCooper has quit [Quit: Leaving]
MrCooper has joined #wayland
naveenk2 has joined #wayland
naveenk2 has left #wayland [#wayland]
naveenk2 has joined #wayland
scoofy has joined #wayland
scoofy has quit [Remote host closed the connection]
hegstal has joined #wayland
aleasto has joined #wayland
<jadahl> romangg: "activate"
blue_penquin is now known as Guest2223
<romangg> jadahl: That's already listed in step 9 though, I thought that 7 meant some other request.
<jadahl> there is only one way to pass a token and ony one way to request activation, and its the same request
<jadahl> maybe those steps can be clarified that they mean are in fact a single request being sent
<romangg> Let me later try to formulate an MR for that. There was also some other description in the actual protocol I stumbled over when trying to understand it.
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #wayland
robert_mader has joined #wayland
<gitlab-bot> wayland issue (Merge request) 95 in wayland-protocols "xdg-activation-v1: clarify set_app_id and set_surface" [Opened]
<romangg> emersion: Ok, that set_surface I definitely interpreted otherwise. Good clarification.
MatrixTravelerb4 has joined #wayland
<gitlab-bot> wayland issue (Merge request) 95 in wayland-protocols "xdg-activation-v1: clarify set_app_id and set_surface" [Opened]
MatrixTravelerb4 has quit [Remote host closed the connection]
<romangg> Is my interpretation correct? If yes, why should a client at all specify a surface? If it doesn't we fall back to asking if any surface of the client has focus, so that makes the call to set_surface redundant.
floof58 has quit [Read error: Connection reset by peer]
leon-p has joined #wayland
<emersion> romangg: yes, and i think we should add the same warning to set_serial
<romangg> true
<emersion> whot: thanks for working on ci-templates freebsd
<emersion> a +1257 patch is pretty scary…
<emersion> (for comparison, my wayland patch is +104…)
<whot> emersion: no worries, thanks to you it showed it was mostly down to "download raw file and run it in qemu"
<whot> emersion: I think only 20 lines of that are the actual freebsd bits, the rest is boilerplate to have the templates (and tests)
<whot> and it fits in with the rest of ci-templates, so you'd just need to extend from .fdo.qemu-build@freebsd and set all the same variables and you get an image
* emersion reads the "End of FreeBSD-specific bits" section
<emersion> well, glad there are some ci-templates wizards out there :)
<whot> blame bentiss for that bit, I mostly just shuffle things around :)
<emersion> daniels, did you have comments on the wayland freebsd CI?
<emersion> pq, what were the missing explciit-sync bits in weston?
<pq> emersion, err, I guess getting the release fence from KMS and sending it to clients?
<emersion> ah right
<romangg> emersion: I thought about it some more and I can imagine one case where the set_serial call would not be redundant: if you have a "special client", like a desktop shell that does never get focus but if you click on some launcher icon in it another client is started,
<emersion> the click event has a serial
<romangg> The compositor may only honor the associated activate request of the new client if in the meantime no other click happened on another client.
floof58 has joined #wayland
<emersion> (1) i suspect if the user launches an app then focuses something else, you won't want to interuupt the user's work by focusing the new toplevel?
<romangg> "the click event has a serial" yea, but the compositor may not know anymore which one it was once the token request comes in. But tbh I'm not 100% sure if it would work without it too.
<romangg> emersion: re (1): yea
<emersion> (2) if the launcher is a special client, the compositor can add a special case for it
<emersion> if (wl_client == launcher) { activation token is always valid }
<emersion> or something
<romangg> re (2): sure
cedric has joined #wayland
<romangg> Ok with (1): the compositor would ignore the activate of a token, if between requesting token and activate some other client is focused than the one that requested the token. Correct?
<emersion> that's compositor-specific policy
<emersion> but that sounds like a reasonable policy, yes
<emersion> some compositors might have a fallback, e.g. mark the toplevel as urgent
bluebugs has quit [Ping timeout: 480 seconds]
<emersion> (e.g. red indicator in the taskbar)
<romangg> And for a special client like a desktop shell, which does not get real focus, it would check on requesting token if the last click happenend on a surface of that desktop shell. If not it can assume between a click on the desktop shell and the arrival of the token request some other client was focused.
<emersion> the click gives pointer focus
<romangg> the "it" in "it would check" is the compositor
<emersion> well
<emersion> tbh focus isn't really relevant i think
<emersion> what matters i think is that focus hasn't changed after the click happened
<emersion> (again, compositors are free to implement what they want here)
<romangg> true, pointer focus is on the surface of the shell when the click happens. sorry, forgot that.
<romangg> ok, makes sense then.
<emersion> focus is kind of complicated, because there are many kinds of focus
<emersion> pointer focus, keyboard focus, xdg-shell active state
<romangg> and the set_serial request seems redundant like the set_surface one.
<emersion> it depends. sometimes the client doesn't have a serial at hand
<emersion> use-case: a terminal emulator receives a bell sequence from a CLI app. it wants to mark itself as urgent
<emersion> the foot terminal emulator does this
<emersion> in this case, bringing the client to the front would be annoying for the user
<emersion> so the compositor should probably either do nothing or indicate that the client requests attention
<romangg> true, but what requests would it need to send then so the compositor knows to only set it as urgent?
LordLamer has joined #wayland
LordLamer has quit [Remote host closed the connection]
<emersion> compositors wouldn't get a set_serial request
<emersion> (or an invalid one, or an outdated one)
<emersion> when compositors don't have a valid, up-to-date serial, they can avoid bringing the toplevel to the front
floof58 has quit [Ping timeout: 480 seconds]
<romangg> Ok, that's a cool idea. But that clients might expect compositors to react to a missing set_serial request on an activate request like this is pretty implicit in the protocol text. :P
<romangg> I wouldn't thought of this use-case at least. So thanks for bringing it up.
<romangg> It's a bit a dirty area, because clients are meant to only care about themselves and not the compositor state. But in this case the client's assumptions influence the compositor's global state.
floof58 has joined #wayland
<romangg> emersion: You got a similar example for when sending or rather omitting to send the set_surface request can be relevant?
<emersion> omitting should happen if the client doesn't have a surface
<emersion> or doesn't have a surface that can be tied to the activation
<emersion> i think it should almost never happen
<emersion> one possible case is when a client is completely minimized in an icon tray or something
<emersion> but then not sure why it would need a token
<emersion> (if the user clicks the tray icon to un-minimize, the client should get the token from there)
<romangg> Yea, and if the client has no surface the compositor would know that too.
<emersion> btw, we should add an activation-token field for whatever SNI uses for input events
<romangg> Um, where to add that?
<emersion> probably here
<emersion> something like org.freedesktop.StatusNotifierItem.ActivationToken
<emersion> which can be called right before any of the other methods
<emersion> cc apol[m]
<romangg> So is the TLDR about set_serial/set_surface requests like this: the set_serial request has a reasonable use case with a client only wanting attention but not activation (although that could be a request with a single boolean too), but the set_surface request is redundant?
jlindgren has joined #wayland
jlindgren has quit [Remote host closed the connection]
<emersion> romangg, what do you mean by "redundant"?
<emersion> how would a bool help for set_serial?
timsmall[m4 has joined #wayland
timsmall[m4 has quit [autokilled: This host has violated network policy. Contact support@oftc.net with questions (2021-06-15 10:16:21)]
<emersion> in the usual case, clients send both set_serial/set_surface
<emersion> the special edge-cases are when they don't
<romangg> Well, that was my question in the beginning: why should we transmit information about a singular surface if a compositor would usually decide about the request token's authorization on the basis if _any_ surface of the requesting client currently has focus.
Peter[m]225 has joined #wayland
<pq> sounds a bit hazardous to assume that all surfaces of a client are somehow related
Peter[m]225 has quit [Remote host closed the connection]
<emersion> thunderbird has both an email client and an IM client built in
<emersion> maybe each of these parts have different surfaces
<pq> IOW, "any surface of a client" is a phrase that should not be used IMO.
<emersion> a client might be waypipe, which aggregates surfaces from many different clients on the remote side
<emersion> some compositors might ignore set_surface, some others might not
<romangg> pq: why should the phrase not be used.
Woet_ has joined #wayland
Woet_ has quit [Remote host closed the connection]
<pq> romangg, because it may result in an unrelated, wrong surface
<pq> exactly what emersion was just explaining
<pq> If you need "any surface", you have to explicitly define which set of surfaces is considered. All surfaces of a client is a too wide set as the surfaces may be completely unrelated.
sstiller has joined #wayland
<romangg> emersion: the waypipe example is an interesting one. It would just pipe along xdg-activation requests from its clients and trust in the host compositor to prevent non-allowed "subclient" requests based on the set surface.
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #wayland
<romangg> pq: Is the waypipe case an example for what you mean?
<pq> yes
<pq> even gnome-terminal could be an example of that, as it uses a single daemon for multiple unrelated windows.
rasterman has quit []
rasterman has joined #wayland
aleasto has quit [Remote host closed the connection]
aleasto has joined #wayland
floof58 has quit [Read error: No route to host]
floof58 has joined #wayland
dcz has quit [Ping timeout: 480 seconds]
naveenk2 has quit []
<romangg> pq: yea, with the set_surface call the compositor gets more information to decide on its own if a request should be honored. otherwise it would need to trust for example on some internal mechanism of gnome-terminal for "focus-stealing prevention" for its separate terminal windows.
<romangg> Thanks for the discussion.
naveenk2 has joined #wayland
<romangg> emersion: You mentioned earlier you want to add a field to SNI. You want to discuss that some more or you have already an idea how to proceed? Tbh I don't know much about SNIs though.
<gitlab-bot> wayland issue (Merge request) 95 in wayland-protocols "xdg-activation-v1: clarify set_{serial,app_id,surface}" [Opened]
floof58 has quit [Remote host closed the connection]
floof58 has joined #wayland
<emersion> a "LGTM" comment never hurts, if you're happy with the changes :P
<emersion> for SNI, we'd need a MR against xdg-specs
<gitlab-bot> xdg issue (Merge request) 43 in xdg-specs "notification: add ActivationToken signal" [Opened]
banana has joined #wayland
<emersion> hm
<emersion> i'm not sure where SNI lives
andol29 has joined #wayland
<emersion> romangg: the activate request. this is unclear and should be clarified
andol29 has quit [Remote host closed the connection]
<Levans> apol: looks like matrix messages are not forwarded to IRC currently
<romangg> emersion: added a LGTM
<emersion> thx!
<Levans> apol: Or, actually, it's only yours, mine went through. You might want to leave & rejoin.
<romangg> emersion: I'm working on clarifying this.
apol[m] has left #wayland [#wayland]
<emersion> cool
apol[m] has joined #wayland
<Levans> apol: your messages still don't get through :/ Probably best to ask for help on #irc:matrix.org, I suspect that's a common issue, they'll likely know how you can fix it.
<romangg> emersion: Question about this: Is XDG_ACTIVATION_TOKEN only set by the launcher or also populated again with a token value when an already launched app should be activated again. For example when file explorer opens another document in an already launched text editor.
robertmader[m] has joined #wayland
robert_mader has quit [Quit: Leaving.]
apol[m] has left #wayland [#wayland]
apol[m] has joined #wayland
<emersion> when you launch another client, set XDG_ACTIVATION_TOKEN in its environment
<emersion> when you're launched, use the XDG_ACTIVATION_TOKEN from your env, then remove XDG_ACTIVATION_TOKEN from your env
apol has joined #wayland
<romangg> In the second case how does the client which requested the token populate the XDG_ACTIVATION_TOKEN env var in the env of the already launched other client?
<emersion> the launcher requests a token before starting the child process
apol has quit []
apol has joined #wayland
<pq> in the second case, the new child process that talks to the daemon that hosts all the document windows needs to take the token and transmit it to the daemon.
<emersion> right
<pq> the same way it tells the daemon to open the document
khfeng has quit [Remote host closed the connection]
khfeng has joined #wayland
apol[m] has left #wayland [#wayland]
apol[m] has joined #wayland
<apol[m]> a
<pq> apol[m], it works!
<apol[m]> finally >.< sorry, was saying things until I realised y'all were not just ignoring me but that I wasn't properly logged in oftc
<emersion> something something OFTC should add SASL support something
<apol[m]> or we should use a protocol from this century :D
<apol[m]> anyway
<apol[m]> but also SNI is not in xdg-specs per se, because some people didn't want it back then
<apol[m]> that's why I never created that MR
<emersion> ah, i see
<apol[m]> but I might be missing something
<emersion> that's annoying
<emersion> this addition looks good to me, modulo docs
<emersion> but why is there a freedesktop.org website for SNI then?
<apol[m]> because KDE really wanted it to be a standard, notmart did most of the work though
apol has quit []
<emersion> this "half a fdo standard" situation is confusing
floof58 has quit [Remote host closed the connection]
floof58 has joined #wayland
abc_ has joined #wayland
abc_ has quit [Remote host closed the connection]
st3r4g has joined #wayland
<romangg> pq: Ok, so one could say in this second case this is some proprietary way of forwarding the token.
<romangg> But the launched child process still gets it first written into its XDG_ACTIVATION_TOKEN env var.
floof58 has quit [Remote host closed the connection]
<pq> romangg, yup.
floof58 has joined #wayland
<romangg> Besides child processes there is also D-Bus Activation which is often used to launch apps. In this case I assume the new/reactivated client should instead look into the platform_data in its D-Bus interface org.freedesktop.Application as the xdg-activation-v1 protocol says.
<gitlab-bot> xdg issue (Merge request) 47 in xdg-specs "RFC: Let DBus-activated processes properly integrate on Wayland" [Opened]
<romangg> Too many moving parts! XD
<romangg> Would an overview document be good to just link all currently open MRs about that xdg-activation?
Fanch has joined #wayland
Fanch has quit [Remote host closed the connection]
s8548a__ has joined #wayland
s8548a__ has quit [Remote host closed the connection]
naveenk2 has quit [Ping timeout: 480 seconds]
<pq> emersion, should I pick up the wayland-scanner patches from James Legg on the mailing list, or will you? I guess someone just flushed the moderation queue.
leon-p has quit []
floof58 has quit [Read error: No route to host]
shankaru has quit []
floof58 has joined #wayland
Sumera[m] has quit []
Sumera[m] has joined #wayland
<romangg> emersion: opened https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/98 for the clarifications.
<gitlab-bot> wayland issue (Merge request) 98 in wayland-protocols "xdg-activation: improve specification text and documentation" [Opened]
Sumera[m] has quit []
Sumera[m] has joined #wayland
floof58_ has joined #wayland
floof58 has quit []
naveenk2 has joined #wayland
ebassi has quit []
ebassi has joined #wayland
ebassi has quit []
mr_kyd has joined #wayland
mr_kyd has quit [Remote host closed the connection]
ebassi has joined #wayland
audiodef has joined #wayland
audiodef has quit [Remote host closed the connection]
vjoki has joined #wayland
vjoki has quit [Remote host closed the connection]
dcz has joined #wayland
Blueking has joined #wayland
Blueking has quit [Remote host closed the connection]
pasternak has joined #wayland
pasternak has quit [Remote host closed the connection]
tadashi has joined #wayland
srh1605 has joined #wayland
tadashi has quit []
mhayden has quit [Quit: The Lounge - https://thelounge.chat]
mhayden has joined #wayland
ehmry9 has joined #wayland
ehmry9 has quit [autokilled: Suspected spammer. Mail support@oftc.net with questions (2021-06-15 14:44:01)]
banana has quit []
UForgotten has joined #wayland
UForgotten has quit [autokilled: spambot. Dont mail support@oftc.net with questions (2021-06-15 14:49:10)]
newtmewt has joined #wayland
newtmewt has quit [Remote host closed the connection]
sca has quit [Remote host closed the connection]
sstiller has quit [Remote host closed the connection]
leon-p has joined #wayland
columbar1 has quit []
columbarius has joined #wayland
srh1605 has quit [Remote host closed the connection]
Ariadne has quit [Ping timeout: 480 seconds]
norlevo has joined #wayland
norlevo has quit [Remote host closed the connection]
Ariadne has joined #wayland
tzimmermann has quit [Quit: Leaving]
srh1605 has joined #wayland
naveenk2 has quit []
shankaru has joined #wayland
cedric is now known as bluebugs
khfeng has quit [Ping timeout: 480 seconds]
<daniels> emersion: my comments are obsoleted by using ci-templates, which is definitely good :D
<emersion> daniels, what were your comments?
<daniels> emersion: 'it would be great if this was in ci-templates', and 'it would be great if this wasn't in the core x86 container'
<emersion> in the core x86 container?
<emersion> i won't make a MR to switch to ci-templates
<emersion> i don't really like ci-templates tbqh
<emersion> i prefer to understand stuff i rely on
<daniels> it's documented :)
<emersion> rust is documented, too :P
<daniels> haha
<emersion> doesn't mean it's simple
<daniels> yeah, it's certainly not simple
<daniels> but it is the thing which makes other arch/distro/configs/etc tractable
<daniels> anyway, will look again how it feels with ci-templates
naveenk2 has joined #wayland
aleasto has quit [Remote host closed the connection]
marathon has joined #wayland
rasterman has quit [Quit: Gettin' stinky!]
rasterman has joined #wayland
naveenk2 has quit []
Benett has joined #wayland
Benett has quit [Remote host closed the connection]
sandman13 has joined #wayland
sandman13 has quit [Remote host closed the connection]
dcz has quit [Ping timeout: 480 seconds]
jcotton has joined #wayland
jcotton has quit [Remote host closed the connection]
danshick has quit [Remote host closed the connection]
danshick has joined #wayland
danshick has quit [Remote host closed the connection]
danshick has joined #wayland
boistordu has quit [Quit: Leaving]
boistordu_ex has joined #wayland
columbar1 has joined #wayland
columbar1 has quit []
columbar1 has joined #wayland
columbarius has quit [Ping timeout: 480 seconds]
stien[m] has joined #wayland
stien[m] has quit [autokilled: Suspected spammer. Mail support@oftc.net with questions (2021-06-15 21:53:30)]
hardening has quit [Ping timeout: 480 seconds]
pnowack has quit [Quit: pnowack]
leon-p has quit [Ping timeout: 480 seconds]
klltkr has joined #wayland
pastly-antispam has quit [Quit: WeeChat 2.3]
danvet has quit [Ping timeout: 480 seconds]
lally has joined #wayland
lally has quit [Remote host closed the connection]
shankaru has quit []
Amun_Ra has joined #wayland
Amun_Ra has quit [Remote host closed the connection]
ukari has joined #wayland
ukari has quit [Remote host closed the connection]
st3r4g has quit [Quit: おやすみ]
Seirdy has quit [Quit: exiting 3.2-dev]
LiamProven[m]1 has joined #wayland
LiamProven[m]1 has quit [Remote host closed the connection]
rasterman has quit [Quit: Gettin' stinky!]