<div dir="ltr">Hi Pekka,<div><br></div><div>Thank you for your helpful feedback.</div><div>I understand all your points and will take a look to provide a custom logic to weston desktop to support my use-cases.</div><div><br></div><div>Best regards,</div><div>Huy</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 13, 2023 at 5:07 PM Pekka Paalanen <<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 12 Jul 2023 21:38:06 +0700<br>
huy nguyen <<a href="mailto:huykhacnguyen1983@gmail.com" target="_blank">huykhacnguyen1983@gmail.com</a>> wrote:<br>
<br>
> Hi all,<br>
> <br>
> I have a Linux system based on weston wayland. I run MPV player and expect<br>
> it displays a video window at (0,0) position on the screen (top left corner<br>
> of the display). I already use x11egl backend option to MPV to support a<br>
> fixed position to application but the video window of MPV is displayed at<br>
> an offset (X offset, Y offset) from (0,0) position as shown by the picture<br>
> below:<br>
> <br>
> [image: IMG_6944.jpg]<br>
> <br>
> Can we have a support from weston wayland to position (0,0)  to application<br>
> running on Xwayland backend?<br>
<br>
Hi,<br>
<br>
I think the gap you see is the window decorations. Weston's X11 Window<br>
Manager (XWM) and demo clients have a fairly wide margin around window<br>
decorations. So the window actually is at (0, 0) already, and the gap<br>
is really just the decorations.<br>
<br>
Maybe you can tell mpv to tell XWM to not decorate the window at all,<br>
or maybe you can make the position slightly negative to close the gap.<br>
<br>
However, if this is a not general use desktop, and kiosk-shell does not<br>
fit, the I'm afraid the only reliable way to get exactly the window<br>
management behaviour you want overall is to fork and modify Weston's<br>
desktop-shell plugin. I mean, maybe you would also like the video<br>
window to stay on top regardless of where the user is touching/clicking.<br>
<br>
Composing an application from multiple independent programs like video<br>
players necessarily requires the window manager to be part of the<br>
application. As window managers are built into Wayland compositors, you<br>
have to change the compositor. In Weston case that happens by loading<br>
a different "shell" plugin.<br>
<br>
Usually if you want an application to embed a video player, you do that<br>
with video playing libraries inside the application, and not by adding<br>
an external video player which then requires careful window management.<br>
<br>
<br>
Thanks,<br>
pq<br>
</blockquote></div>