如何在 Weston 背景中设置 Wayland 客户端表面的位置? [英] How to set position of a Wayland client's surface in Weston background?

查看:114
本文介绍了如何在 Weston 背景中设置 Wayland 客户端表面的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 Wayland 外壳表面来显示FPS 信息".

I create a Wayland shell surface to show "FPS info".

现在,我想在启动应用程序时为这个 Wayland 客户端设置固定位置.我该怎么做?

Now, I would like to set fixed position for this wayland client while starting the application. How can I do this ?

推荐答案

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

Set fixed position of text displaying window by using

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

这篇关于如何在 Weston 背景中设置 Wayland 客户端表面的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆