How to set position of a Wayland client's surface in Weston background?

丶灬走出姿态 提交于 2020-12-12 06:57:52

问题


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

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


回答1:


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);


来源:https://stackoverflow.com/questions/47305945/how-to-set-position-of-a-wayland-clients-surface-in-weston-background

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!