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
AndroUser2 has quit [Remote host closed the connection]
AndroUser2 has joined #wayland
AndroUser2 has quit [Remote host closed the connection]
AndroUser2 has joined #wayland
ybogdano has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Quit: WeeChat 3.5]
AndroUser2 has quit [Remote host closed the connection]
<repetitivestrain>
what happens if wl_pointer_set_cursor is called on pointers belonging to two different seats with the same surface?
<repetitivestrain>
is an error thrown the second time, since the surface already has a role
<repetitivestrain>
or does the surface become the surface on both seats?
<repetitivestrain>
become the cursor*
systwi_ has joined #wayland
systwi has quit [Ping timeout: 480 seconds]
rasterman has joined #wayland
dcz_ has quit [Ping timeout: 480 seconds]
rv1sr has joined #wayland
<repetitivestrain>
also, isn't the pointer undefined upon first entering a surface?
<repetitivestrain>
weston demo programs apparently don't set the cursor at all upon receiving an enter event
<repetitivestrain>
so am i missing something?
<repetitivestrain>
thanks
Net147 has quit [Quit: Quit]
Net147 has joined #wayland
Net147 has quit [Quit: Quit]
Net147 has joined #wayland
hardening has joined #wayland
Net147 has quit [Quit: Quit]
Net147 has joined #wayland
GentooPhysicist39354 has quit []
GentooPhysicist39354 has joined #wayland
GentooPhysicist39354 has quit []
GentooPhysicist39354 has joined #wayland
MajorBiscuit has joined #wayland
repetiti` has joined #wayland
danvet has joined #wayland
rasterman has quit [Quit: Gettin' stinky!]
repetiti` has quit []
repetitivestrain has quit [Ping timeout: 480 seconds]
repetitivestrain has joined #wayland
ammen99 has joined #wayland
<ammen99>
Hi all, when I press down on a touchscreen on a view which does not have keyboard focus, and the compositor policy is to focus the view, then should the compositor first send touch.down and then keyboard.enter, or first keyboard.enter and then touch.down? Or should it not make a difference?
<kennylevinsen>
It shouldn't make a difference, keyboard focus is entirely unrelated to touch focus
rv1sr has quit [Ping timeout: 480 seconds]
rv1sr has joined #wayland
<ammen99>
kennylevinsen: I see, then what I have stumbled on seems a gtk bug. I try to start drag and drop from an unfocused surface, but gtk tries to start the DnD operation with the serial from the wl_keyboard.enter event which comes after the wl_touch.down event
<kennylevinsen>
but if it starts the drag after the enter event, then that *might* be okay
<kennylevinsen>
"the client must have an active implicit grab that matches the serial"
<ammen99>
well yeah but wlroots' logic does not handle that :P
<kennylevinsen>
if it has a later valid serial then I guess that's fine too. I would agree that it makes more sense to use touch serials for touch drag though.
<kennylevinsen>
what are we expecting? only the touch down or motion serial?
<ammen99>
the touch down serial it seems
<kennylevinsen>
ah yeah so in sway, a pointer serial initiates a pointer grab, a touch serial initiates a touch grab, and a keyboard serial does nothing right now.
<ammen99>
i guess one can't really start drag and drop with the keyboard ...
<kennylevinsen>
which seems sensible, and suggests that gtk is in the wrong here
<kennylevinsen>
if you can I'd like to know how lol
<ammen99>
I'll let you know if I ever figure it out :)
<ammen99>
thanks for the help
<kennylevinsen>
I guess Gtk is being lazy and just storing its last "grab-triggering" serial and using that, irrespective of type
<kennylevinsen>
maybe open an issue towards core to get the text clarified though
<kennylevinsen>
weston also agrees with sway's definition btw
<dottedmag>
the protocol is not strict on this though, so if gtk is doing that it would be a breaking change, wouldn't it?
<kennylevinsen>
well, we'll take that in the issue. The alternative interpretation makes it impossible to know what kind of grab should be created, and is incompatible with e.g. weston and sway
<kennylevinsen>
so I don't think it can be considered a valid interpretation
<kennylevinsen>
it would be more up to discussion if both interpretations could coexist
<kennylevinsen>
I also suspect that this is just an unexpected gtk bug rather than planned behavior
<kennylevinsen>
ammen99: before that commit it used the last of *any* serial (which is pretty likely to be wrong) and instead use the last implicit grab serial (which I guess could still be wrong but less likely?). However, this fix has only been in gtk4 for a month, and is not in gtk3. Maybe test that and suggest a backport?
AndroUser2 has quit [Ping timeout: 480 seconds]
nerdopolis has joined #wayland
<ammen99>
kennylevinsen: I am not sure it is worth it, better use this as yet another reason to move to gtk4 ..
devilhorns has joined #wayland
perr has quit [Ping timeout: 480 seconds]
dcz_ has joined #wayland
jmdaemon has quit [Ping timeout: 480 seconds]
dcz_ has quit [Ping timeout: 480 seconds]
devilhorns has quit []
dreda has quit [Read error: Connection reset by peer]
ammen99 has quit [Quit: Page closed]
devilhorns has joined #wayland
ManMower has quit []
ManMower has joined #wayland
devilhorns has quit []
pac85 has joined #wayland
<pac85>
I remember talking about direct scanout and how at the time it would only happen if the fullscreen client would happen to use an appropriate format. Recently I've read some xorg and wsi code and things work rather differently in there, tl;dr the xserver exposes wether frames are being flipped directly or copied and wsi uses this information along with other things to decide whether it is appropriate to request the client to reallocate his swapchain by returni
<pac85>
by returning VK_SUBOPTIMAL_KHR from QueuePresent. Now I was wondering whether Xorg's present protocol is just more complete and Wayland will eventually catch up or whether this was somehow by design (perhaps because wayland compositors aren't doing something as bad as blitting to the front buffer so it's not that important to flip frames directly?) (Damn those truncated messages)
<emersion>
pac85: wayland's protocol is more complete
<emersion>
see linux-dmabuf feedback
<pac85>
(I'm assuming Wayland doesn't do something analogous because I've looked at wsi for wayland too and it didn't seem to do soemthinf analogous, correct me if I'm wrong)
<kennylevinsen>
Telling you that you screwed up doesn't really help you pick a format, while dmabuf hints tell you exactly what is preferred
AndroUser2 has joined #wayland
pac85 is now known as Guest662
AndroUser2 is now known as pac85
<pac85>
Thx I'll check that out, I was wondering how the case of conditions changing is handled though (such as a window goinf fullscreen though I guess a swapchain would be reallocated anyway)
<pac85>
So direct scanout should now work consistently right?
<kennylevinsen>
Read the protocol, which handles that
Guest662 has quit [Ping timeout: 480 seconds]
rasterman has joined #wayland
MajorBiscuit has quit [Ping timeout: 480 seconds]
pac85 has quit [Remote host closed the connection]
pac85 has joined #wayland
pac85 has quit [Remote host closed the connection]
pac85 has joined #wayland
pac85 has quit [Read error: Connection reset by peer]
pac85 has joined #wayland
CodeSpelunker has joined #wayland
pac85 has quit [Remote host closed the connection]
pac85 has joined #wayland
pac85 has quit [Remote host closed the connection]
pac85 has joined #wayland
CodeSpelunker has quit [Quit: CodeSpelunker]
rasterman has quit [Quit: Gettin' stinky!]
mbalmer_ has quit []
AndroUser2 has joined #wayland
pac85 has quit [Read error: Connection reset by peer]
AndroUser2 has quit [Read error: Connection reset by peer]
AndroUser2 has joined #wayland
jmdaemon has joined #wayland
AndroUser2 has quit [Read error: No route to host]
AndroUser2 has joined #wayland
AndroUser2 has quit [Remote host closed the connection]
AndroUser2 has joined #wayland
AndroUser2 has quit [Read error: Connection reset by peer]
AndroUser2 has joined #wayland
g000p has joined #wayland
AndroUser2 has quit [Read error: Connection reset by peer]