Need support to have weston randr release
Hi all, I have a Linux system based on weston wayland and I need to get the current setting of the display resolution. Unfortunately, xrandr command does not work on Wayland. After much searching, I came to this information which is about adding weston-randr support for Weston compositor: https://lists.freedesktop.org/archives/wayland-devel/2014-February/013480.html However, I could not find a link to download the patch to apply in order to have weston-randr command Please advise if the patch is available for the community to use. Thank you, Huy
Re: Need support to display application at (0, 0) position on Weston desktop
Hi Daniel, Thank you for the reply. In my application, I want to overlay an MPV video window on another application so that users can view both video content and other application static content so that a fullscreen MPV is not suitable. Is it possible to adjust the initial position of MPV video window at (0,0) on the weston desktop (I already hide the weston top bar). Best regards, Huy On Wed, Jul 12, 2023 at 10:21 PM Daniel Stone wrote: > Hi Huy, > > On Wed, 12 Jul 2023 at 16:15, huy nguyen > wrote: > >> I have a Linux system based on weston wayland. I run MPV player and >> expect it displays a video window at (0,0) position on the screen (top left >> corner of the display). I already use x11egl backend option to MPV to >> support a fixed position to application but the video window of MPV is >> displayed at an offset (X offset, Y offset) from (0,0) position as shown by >> the picture below: >> > > You probably want to make mpv be fullscreen, and then it will take up the > whole area of the screen. kiosk-shell does this well, by telling all > applications to be fullscreen. > > Cheers, > Daniel >
Re: Need support to display application at (0, 0) position on Weston desktop
Hi Pekka, Thank you for your helpful feedback. I understand all your points and will take a look to provide a custom logic to weston desktop to support my use-cases. Best regards, Huy On Thu, Jul 13, 2023 at 5:07 PM Pekka Paalanen wrote: > On Wed, 12 Jul 2023 21:38:06 +0700 > huy nguyen wrote: > > > Hi all, > > > > I have a Linux system based on weston wayland. I run MPV player and > expect > > it displays a video window at (0,0) position on the screen (top left > corner > > of the display). I already use x11egl backend option to MPV to support a > > fixed position to application but the video window of MPV is displayed at > > an offset (X offset, Y offset) from (0,0) position as shown by the > picture > > below: > > > > [image: IMG_6944.jpg] > > > > Can we have a support from weston wayland to position (0,0) to > application > > running on Xwayland backend? > > Hi, > > I think the gap you see is the window decorations. Weston's X11 Window > Manager (XWM) and demo clients have a fairly wide margin around window > decorations. So the window actually is at (0, 0) already, and the gap > is really just the decorations. > > Maybe you can tell mpv to tell XWM to not decorate the window at all, > or maybe you can make the position slightly negative to close the gap. > > However, if this is a not general use desktop, and kiosk-shell does not > fit, the I'm afraid the only reliable way to get exactly the window > management behaviour you want overall is to fork and modify Weston's > desktop-shell plugin. I mean, maybe you would also like the video > window to stay on top regardless of where the user is touching/clicking. > > Composing an application from multiple independent programs like video > players necessarily requires the window manager to be part of the > application. As window managers are built into Wayland compositors, you > have to change the compositor. In Weston case that happens by loading > a different "shell" plugin. > > Usually if you want an application to embed a video player, you do that > with video playing libraries inside the application, and not by adding > an external video player which then requires careful window management. > > > Thanks, > pq >
Re: Need support to display application at (0, 0) position on Weston desktop
Hi Igor, 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. 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. Best regards, Huy On Thu, Jul 13, 2023 at 10:29 PM Igor Korot wrote: > Hi, > I believe with any Wayland stuff you will fail to use absolute positioning. > > you absolutely have to use X11 and forget about Wayland.. > > The Wayland devs are NOT CONVINCED enough to support absolute > positioning and will just tell you to use X11. > > THank you. > > On Thu, Jul 13, 2023 at 9:55 AM huy nguyen > wrote: > > > > Hi Pekka, > > > > Thank you for your helpful feedback. > > I understand all your points and will take a look to provide a custom > logic to weston desktop to support my use-cases. > > > > Best regards, > > Huy > > > > On Thu, Jul 13, 2023 at 5:07 PM Pekka Paalanen > wrote: > >> > >> On Wed, 12 Jul 2023 21:38:06 +0700 > >> huy nguyen wrote: > >> > >> > Hi all, > >> > > >> > I have a Linux system based on weston wayland. I run MPV player and > expect > >> > it displays a video window at (0,0) position on the screen (top left > corner > >> > of the display). I already use x11egl backend option to MPV to > support a > >> > fixed position to application but the video window of MPV is > displayed at > >> > an offset (X offset, Y offset) from (0,0) position as shown by the > picture > >> > below: > >> > > >> > [image: IMG_6944.jpg] > >> > > >> > Can we have a support from weston wayland to position (0,0) to > application > >> > running on Xwayland backend? > >> > >> Hi, > >> > >> I think the gap you see is the window decorations. Weston's X11 Window > >> Manager (XWM) and demo clients have a fairly wide margin around window > >> decorations. So the window actually is at (0, 0) already, and the gap > >> is really just the decorations. > >> > >> Maybe you can tell mpv to tell XWM to not decorate the window at all, > >> or maybe you can make the position slightly negative to close the gap. > >> > >> However, if this is a not general use desktop, and kiosk-shell does not > >> fit, the I'm afraid the only reliable way to get exactly the window > >> management behaviour you want overall is to fork and modify Weston's > >> desktop-shell plugin. I mean, maybe you would also like the video > >> window to stay on top regardless of where the user is touching/clicking. > >> > >> Composing an application from multiple independent programs like video > >> players necessarily requires the window manager to be part of the > >> application. As window managers are built into Wayland compositors, you > >> have to change the compositor. In Weston case that happens by loading > >> a different "shell" plugin. > >> > >> Usually if you want an application to embed a video player, you do that > >> with video playing libraries inside the application, and not by adding > >> an external video player which then requires careful window management. > >> > >> > >> Thanks, > >> pq >