2

I create a Wayland shell surface to show "FPS info". I would like to position windows like this

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

4

1 回答 1

1

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

wl_shell_surface_set_transient (wl_shell_surface, wl_surface, POS_X, POS_Y, 0);
wl_shell_surface_set_toplevel(wl_shell_surface);
于 2017-12-01T08:08:57.457 回答