Set Wayland application position in Weston on IMX8

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Set Wayland application position in Weston on IMX8

7,329件の閲覧回数
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 件の賞賛
返信
8 返答(返信)

6,000件の閲覧回数
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 件の賞賛
返信

4,055件の閲覧回数
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 件の賞賛
返信

4,055件の閲覧回数
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 件の賞賛
返信

6,559件の閲覧回数
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 件の賞賛
返信

6,706件の閲覧回数
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 件の賞賛
返信

6,970件の閲覧回数
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 件の賞賛
返信

6,970件の閲覧回数
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 件の賞賛
返信

4,857件の閲覧回数
sabidi
Contributor I
@clement_gervais Ihave the same problem, how the the fullscreen works?
0 件の賞賛
返信