Set Wayland application position in Weston on IMX8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set Wayland application position in Weston on IMX8

6,232 Views
clement_gervais
Contributor II

Hi,

I run an application using Wayland, EGL and Open GLES2 on IMX8qxp. I launch my application with the weston terminal and it works fine.

But the position of my application is random on the screen. I tried to use the function wl_shell_surface_set_transient (wl_shell_surface, wl_surface, POS_X, POS_Y, 0);

directly in my code.

However, I see no effect. Do you have a solution to fix the position of my application on the screen?

Thank you in advance for your help,

0 Kudos
8 Replies

4,903 Views
r_trivedi123
Contributor IV

Hi, @clement_gervais,@Kareemunnisa  @Kareem 

I think this thread from Wayland mailing list will help
https://gitlab.freedesktop.org/wayland/wayland/-/issues/183

Ultimately, It has to say that positioning will be a job of window manager i.e compositor and not the end application.

[Update]: Btw we have created our own compositor and API so that wayland client application can be placed at specified position, on top of that we have created our own gstreamer wayalandsink plugin as well, which will position videos on specific position.

0 Kudos

2,958 Views
r_trivedi123
Contributor IV

Hi, @clement_gervais,@Kareemunnisa  @Kareem @sabidi , Hope our created plugin can help for your needs

sisigwaylandsink - A custom gstreamer plugin to control geometry 
Features and demo is provided in the video link.

--
BR
rutvij.trivedi@siliconsignals.io

0 Kudos

2,958 Views
r_trivedi123
Contributor IV

@clement_gervais@sabidi @Kareemunnisa @Kareem, Hope our created plugin can help for your need

sisigwaylandsink - A custom gstreamer plugin to control geometry 
Features and demo is provided in the video link.

--
BR
rutvij.trivedi@siliconsignals.io

0 Kudos

5,462 Views
Kareemunnisa
Contributor I

Using Wayland, EGL and Open GLES2 on IMX8. I launch my application and it works fine.But the position of my application is random on the screen. I tried to use the function wl_shell_surface_set_transient (wl_shell_surface, wl_surface, POS_X, POS_Y, 0); directly in my code.

Do you have a solution to fix the position of my application on the screen?

0 Kudos

5,609 Views
Kareem
Contributor I

Hi,

I am also facing the same issue as mentioned above, the position of my application is random on the screen. Kindly provide any other solution for this problem.

Regards,

Kareemunnisa S

0 Kudos

5,873 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Clement,

Try again the following to set fixed application:

wl_shell_surface_set_transient (wl_shell_surface, wl_surface, POS_X, POS_Y, 0); wl_shell_surface_set_toplevel(wl_shell_surface);

These variables are such as 
 and even 
 for applications that need 
XWayland.

Regards
0 Kudos

5,873 Views
clement_gervais
Contributor II

Hi Bio_TICFSL,

Thank you for your response. I tested your solution but without effect.

However, the fullscreen mode works. I dont't know why the set transient function doesn't work.

Regards

0 Kudos

3,760 Views
sabidi
Contributor I
@clement_gervais Ihave the same problem, how the the fullscreen works?
0 Kudos