Position 如何设置Wayland客户机的位置&x27;Weston背景中的表面?

Position 如何设置Wayland客户机的位置&x27;Weston背景中的表面?,position,wayland,Position,Wayland,我创建了一个Wayland外壳曲面以显示“FPS信息”。 现在,我想在启动应用程序时为这个wayland客户端设置固定位置。 如何执行此操作?使用设置文本显示窗口的固定位置 wl_shell_surface_set_transient (wl_shell_surface, wl_surface, POS_X, POS_Y, 0); wl_shell_surface_set_toplevel(wl_shell_surface);

我创建了一个Wayland外壳曲面以显示“FPS信息”。

现在,我想在启动应用程序时为这个wayland客户端设置固定位置。
如何执行此操作?

使用设置文本显示窗口的固定位置

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