Set Wayland application position in Weston on IMX8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Set Wayland application position in Weston on IMX8

6,351 次查看
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 回复数

5,022 次查看
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 项奖励

3,077 次查看
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 项奖励

3,077 次查看
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 项奖励

5,581 次查看
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 项奖励

5,728 次查看
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 项奖励

5,992 次查看
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 项奖励

5,992 次查看
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 项奖励

3,879 次查看
sabidi
Contributor I
@clement_gervais Ihave the same problem, how the the fullscreen works?
0 项奖励