ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
nerdopolis has joined #wayland
guru__ has joined #wayland
Guru_DE has quit [Ping timeout: 480 seconds]
columbarius has joined #wayland
co1umbarius has quit [Ping timeout: 480 seconds]
nerdopolis has quit [Ping timeout: 480 seconds]
nerdopolis has joined #wayland
RAOF has quit [Remote host closed the connection]
RAOF has joined #wayland
RAOF has quit [Remote host closed the connection]
RAOF has joined #wayland
RAOF has quit [Remote host closed the connection]
nerdopolis has quit [Ping timeout: 480 seconds]
RAOF has joined #wayland
RAOF has quit [Remote host closed the connection]
RAOF has joined #wayland
RAOF has quit [Remote host closed the connection]
RAOF has joined #wayland
RAOF has quit [Remote host closed the connection]
RAOF has joined #wayland
RAOF has quit [Remote host closed the connection]
RAOF has joined #wayland
RAOF has quit [Remote host closed the connection]
RAOF has joined #wayland
Brainium has quit [Quit: Konversation terminated!]
leon-anavi has quit [Remote host closed the connection]
<whynothugo>
Can I somehow drag from one client onto another, and have the receiving client receive a file, without creating the file on-disk?
<whynothugo>
I'm basically thinking of a winzip-like GUI where one would drag a file out.
junaid has joined #wayland
<pq>
whynothugo, the Wayland interfaces were designed to allow e.g. passing pipe fd:s around and letting clients produce and consume the data on the fly.
<pq>
I'm not sure how that integrates with today's dnd mime types and stuff.
<whynothugo>
Right, piping the data via the fd is not an issue, the tricky part is the mime-type.
<whynothugo>
AFAIK, there's no mime type like "application/file; filename=photo.png".
<emersion>
the Wayland protocol carries the MIME type
<emersion>
but not sure file managers support something else than uri-list
<whynothugo>
An uri-list won't work because there's no URI for this data; it's data that the sender will decompress on the fly.
<whynothugo>
Actually, would using a mime-type "image/png; filename=photo.png" be valid? That _could_ hint to the receiver that the file being dragged should be saved with the given name.
<emersion>
no, this is not Content-Type
<emersion>
also filenames in Content-Type are not very standard, the RFC says to put it in the Content-Disposition
pieguy128 has quit [Ping timeout: 480 seconds]
<whynothugo>
Ah, true.
<whynothugo>
So there's no way to implement this right now?
Psypherigmatic has quit [Ping timeout: 480 seconds]
pieguy128 has joined #wayland
<d_ed[m]>
Not a standard way. Within KDE's winzip like UI we have a mimedata with a DBus service/path/token that the filemanager uses to callback into the winzip application to tell it where to extract a given set of files.
<whynothugo>
Interesting approach. Having the receiver tell the sender what to do with the files is potentially more efficient.
<whynothugo>
OTOH, this wouldn't work for dragging files fro the winzip-ui into an IM client.
<d_ed[m]>
yeah, then it falls back to the old path. It's not great.
<d_ed[m]>
It's to solve the problem of dragging files between sandboxed apps where paths are different
<d_ed[m]>
I don't think it directly helps you, but it's a somewhat similar problem space
leon-anavi has joined #wayland
nerdopolis has joined #wayland
mblenc has quit [Ping timeout: 480 seconds]
guru__ has quit []
guru__ has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
nerdopolis has joined #wayland
alarumbe has quit [Remote host closed the connection]
jmdaemon has quit [Ping timeout: 480 seconds]
iomari892 has quit [Ping timeout: 480 seconds]
iomari892 has joined #wayland
fmuellner has joined #wayland
rgallaispou has joined #wayland
alarumbe has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
Company has quit [Remote host closed the connection]
Company has joined #wayland
alarumbe has quit [Quit: ZNC 1.8.2+deb2 - https://znc.in]
iomari892 has quit [Ping timeout: 480 seconds]
iomari892 has joined #wayland
Major_Biscuit has joined #wayland
MajorBiscuit has quit [Ping timeout: 480 seconds]
vyivel has quit [Read error: Connection reset by peer]
vyivel has joined #wayland
mvlad has joined #wayland
kts has joined #wayland
kts has quit [Read error: Connection reset by peer]
mblenc has joined #wayland
kts has joined #wayland
tracksgrapefruitcorn has quit [Remote host closed the connection]
tracksgrapefruitcorn has joined #wayland
<ahmadraniri[m]>
Hello, for anyone who using latest wlroots and tinkering tinywl, how do you add popup unconstrain feature ?
<kennylevinsen>
ahmadraniri[m]: #wlroots was the right channel for this question - patience, my young padawan. :)
<kennylevinsen>
wlr_xdg_popup_unconstrain_from_box (rolls off the tongue) - see sway's popup_unconstrain for an example
junaid has quit [Ping timeout: 480 seconds]
tzimmermann has quit [Quit: Leaving]
slim has joined #wayland
leon-anavi has quit [Remote host closed the connection]
Major_Biscuit has quit [Ping timeout: 480 seconds]
nerdopolis has joined #wayland
alarumbe has joined #wayland
dogukan has joined #wayland
dogukan has quit [Remote host closed the connection]
vyivel has quit [Read error: Connection reset by peer]
nerdopolis has quit [Ping timeout: 480 seconds]
vyivel has joined #wayland
dogukan has joined #wayland
<dogukan>
Hi! I am trying to see what DRM format modifiers are advertised by the dmabuf feedback protocol on Mutter 44.4 and Mesa 23.1.6 by running wayland-info and weston-simple-dmabuf-feedback applications on different AMD GPUs (I have a 6900XT and a 780M). However, I only get one modifier per format, and that modifier seems to be invalid (0x00ffffffffffffff). It seems like I get valid modifiers on other compositors like KWin and Weston. What could be
<dogukan>
happening here?
<emersion>
mutter blacklists modifiers on some vendors iirc
vyivel has quit [Ping timeout: 480 seconds]
<dogukan>
Oh, that is interesting. Why does it do that?
<MrCooper>
long story :)
<MrCooper>
tl;dr: it was a workaround to allow direct scanout to work with older versions of Xwayland; the workaround is getting dropped in the upcoming mutter 45 release
cmichael has quit [Quit: Leaving]
rgallaispou has quit [Remote host closed the connection]
<dogukan>
Hmm, so I assume I will be able to get valid format modifiers on mutter 45 and they won't be blacklisted. Is that correct?
<MrCooper>
yep
vyivel has joined #wayland
<dogukan>
Sounds good, thanks a lot for the help!
<MrCooper>
no worries! This makes me wonder if Fedora 39 has new enough Xwayland yet...
dcz_ has quit [Ping timeout: 480 seconds]
manuel1985 has quit [Remote host closed the connection]
manuel1985 has joined #wayland
manuel1985 has quit [Ping timeout: 480 seconds]
<dogukan>
Is there an issue or merge request that I could read more about this workaround? I tried to look up for it but couldn't find much
fmuellner has quit [Read error: Connection reset by peer]
Psypherigmatic has joined #wayland
Psypherigmaticon has joined #wayland
bim9262 has joined #wayland
Psypherigmatic has quit [Ping timeout: 480 seconds]
<ids1024>
wp_security_context_v1 - "When both are set, the combination of the application ID and the sandbox engine must uniquely identify an application" - Does that mean sandbox_engine is optional? And if it isn't present, app_id/instance_id are allowed but have no defined meaning?
rasterman has quit [Quit: Gettin' stinky!]
tracksgrapefruitcorn has quit [Remote host closed the connection]
tracksgrapefruitcorn has joined #wayland
<orowith2os[m]>
ids1024: sounds like set_sandbox_engine *isn't* optional, if you're using this protocol?
<orowith2os[m]>
probably makes sense
<orowith2os[m]>
emersion might have more details
<ids1024>
"when both are set" implies either may not be set, so the wording should be clarified/fixed if the sandbox engine is required. Which might make sense. Though a security context with no sandbox engine could be useful just to communicate that clients connected through it should not have access to any sensitive protocols.
vbt has quit [Remote host closed the connection]
<orowith2os[m]>
ugh
Psypherigmatic has joined #wayland
<orowith2os[m]>
I'm trying to map out some concepts in Wayland to X11, both for a blog post and for a reverse-xwayland I'm going to miserably attempt
<orowith2os[m]>
(or even works for fractional scaling)
Psypherigmaticon has quit [Ping timeout: 480 seconds]
<ids1024>
I don't think there's ever been a good solution for fractional scaling on X. It's possible but problematic to round the scale factor up to an integer, and use randr to scale down to the scale you want. The fractional scaling protocol for Wayland is a recent addition.
<orowith2os[m]>
it's not just fractional scaling, but scaling as a whole
<orowith2os[m]>
it's all such a mess
<orowith2os[m]>
aaand of course the gnome gitlab is down, so I can't read the GDK docs and their implementation of the scale factor
sima has quit [Ping timeout: 480 seconds]
<orowith2os[m]>
maybe I should just do this on top of SDL
<orowith2os[m]>
it would be easier
<orowith2os[m]>
and would probably make it easier to allow Wayland to run on other OSes too
<ids1024>
Building on top of SDL probably wouldn't allow wl_popup, drag and drop, layer-shell (if desired) and other such things to their X equivalents.
cvmn has joined #wayland
Moprius has joined #wayland
cvmn has quit []
<ids1024>
Someone did start working on something like that for Wayland->Quartz, though it doesn't look like it got very far: https://github.com/owl-compositor/owl
<orowith2os[m]>
ids1024: bah, I can access X directly if necessary
Brainium has joined #wayland
<orowith2os[m]>
okay, so it looks like there's just no concept of a scale factor in C.
<orowith2os[m]>
*x
<orowith2os[m]>
*X
<orowith2os[m]>
at all.
<orowith2os[m]>
it's all hacks.
<orowith2os[m]>
and not all of them work.
<ids1024>
"it's all hacks and not all of them work" - perhaps that could be the official motto of X.org. That's basically what all (well, a lot) of modern X11 is. Which is essentially why Wayland exists.
<orowith2os[m]>
I will unironically add that to the documentation and web page of X after I post this
mvlad has quit [Remote host closed the connection]
<kennylevinsen>
orowith2os[m]: just skip scaling to begin with, it's not important for a demonstration
<kennylevinsen>
later you could hack it by turning the gross font dpi thing into a fractional scale value or something - X11 is a hack, so what you make will in turn also be a hack.
Guest1131 has quit []
<kennylevinsen>
No point in fretting over that :)
cool110 has joined #wayland
cool110 is now known as Guest1259
Guest1259 has quit [Remote host closed the connection]
mblenc1 has joined #wayland
cool110_ has joined #wayland
cool110_ is now known as Guest1261
Moprius has quit [Quit: bye]
mblenc has quit [Ping timeout: 480 seconds]
lsd|2 has quit []
Company has quit [Remote host closed the connection]