ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
Calandracas_ has joined #wayland
Calandracas has quit [Ping timeout: 480 seconds]
Calandracas_ has quit [Ping timeout: 480 seconds]
fmuellner has quit [Ping timeout: 480 seconds]
Calandracas has joined #wayland
Calandracas_ has joined #wayland
Calandracas has quit [Ping timeout: 480 seconds]
garnacho has quit [Ping timeout: 480 seconds]
nerdopolis has quit [Ping timeout: 480 seconds]
Moprius has quit [Remote host closed the connection]
glennk has joined #wayland
lanodan has joined #wayland
vincejv has quit [Remote host closed the connection]
lanodan has quit []
lanodan has joined #wayland
vincejv has joined #wayland
vincejv has quit [Remote host closed the connection]
JPEW has quit [Read error: Connection reset by peer]
JPEW has joined #wayland
abdo has joined #wayland
abdo is now known as Guest17779
<Guest17779>
Hi everyone! I'm trying to embed a client window inside another window using xdg-foreign protocol. although I managed to export/import the first window correctly, I need to adjust its positioning relative the parent window.
<Guest17779>
I need to do something similar to xid in X11
Moprius has joined #wayland
<zamundaaa[m]>
Guest17779: that is not supported
<Guest17779>
is there a way I can achieve similar result with some additional work? all I need is to embed the window inside a parent window (done with xdg foreign) and handle it's resizing and position with some callbacks
<Guest17779>
I was thinking about some brute force way using ipc to transfer messages of resizing
fmuellner has quit []
<zamundaaa[m]>
No, embedding is just not supported. Xdg foreign is for dialogs and similar very much separate windows
<kennylevinsen>
Guest17779: the only way is to have the parent window import the content itself - it could create a subsurface and commit buffers it receives from the embedded client. it is also possible to "just" embed a Wayland server (see e.g. casilda, which is a GTK widget containing a wlroots-based Wayland server)
<Guest17779>
kennylevinsen: how can I import the content of another window (receive buffer from embedded client)?
<kennylevinsen>
if you're embedding a Wayland server, that's handled by Wayland. otherwise any communication between the embedded client and the parent is done by you, so whatever you like - for GPU buffers you'd need to use dmabufs
<kennylevinsen>
you can't embed anything existing that way, you'll have to write the parent and client to explicitly talk together over a custom protocol you make (... unless you just embed a Wayland server)
<Guest17779>
alright, I'll try this and see if it works. thanks a lot for your time.
narodnik has joined #wayland
Guest17779 has quit [Quit: Page closed]
JPEW has quit [Ping timeout: 480 seconds]
JPEW has joined #wayland
kts has joined #wayland
bitblt_ has joined #wayland
bitblt has quit [Ping timeout: 480 seconds]
bitblt_ is now known as bitblt
rasterman has joined #wayland
<emersion>
ew, looks like i missed the RC last week