<div dir="ltr">Hi Igor,<div><br></div><div>I do not have a full context about Wayland protocol vs X11 legacy faults to understand the reason why the Wayland devs do not support absolute position decided by client applications.</div><div>Fortunately, I can modify the weston desktop shell to provide that support to my particular use-case with my local build so that I can live with that until an official support from Wayland in the future.</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 10:29 PM Igor Korot <<a href="mailto:ikorot01@gmail.com">ikorot01@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">Hi,<br>
I believe with any Wayland stuff you will fail to use absolute positioning.<br>
<br>
you absolutely have to use X11 and forget about Wayland..<br>
<br>
The Wayland devs are NOT CONVINCED enough to support absolute<br>
positioning and will just tell you to use X11.<br>
<br>
THank you.<br>
<br>
On Thu, Jul 13, 2023 at 9:55 AM huy nguyen <<a href="mailto:huykhacnguyen1983@gmail.com" target="_blank">huykhacnguyen1983@gmail.com</a>> wrote:<br>
><br>
> Hi Pekka,<br>
><br>
> Thank you for your helpful feedback.<br>
> I understand all your points and will take a look to provide a custom logic to weston desktop to support my use-cases.<br>
><br>
> Best regards,<br>
> Huy<br>
><br>
> On Thu, Jul 13, 2023 at 5:07 PM Pekka Paalanen <<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>> wrote:<br>
>><br>
>> 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>