从xdg_surface使用xdg_surface.get_toplevel创建一个xdg_顶级层。 为xdg_surface配置一个监听器并等待configure事件。 绑定到你选择的缓冲区分配机制(例如wl_shm)并分配一个共享缓冲区,然后将你* 的内容渲染到其中。 使用wl_surface.attach将wl_buffer附加到wl_surface。 使用xdg_surface.ack_configure,传递来自confi...
<eventname="configure"><argname="serial"type="uint"summary="serial of the configure event"/></event><requestname="ack_configure"><argname="serial"type="uint"summary="the serial from the configure event"/></request> xdg_surface最重要的API是一对configure和ack_configure。您可能还记得Wayland的...
* manipulate a buffer prior to the first xdg_surface.configure call must * also be treated as errors. * * For a surface to be mapped by the compositor, the following conditions * must be met: (1) the client has assigned a xdg_surface based role to the * surface, (2) the cl...
然而,xdg_surface的每个子类(xdg_toplevel和xdg_popup)都有额外的事件,服务器可以在“configure”之前发送这些事件,以使上述所有建议都有意义。服务器将发送所有状态;最大化、聚焦、建议的大小;然后是一个带有序列号的configure事件。当客户端假定与这些建议一致的状态时,它会发送具有相同序列号的ack_configure请求来表...
* Creating an xdg_surface from a wl_surface which has a buffer attached or * committed is a client error, and any attempts by a client to attach or * manipulate a buffer prior to the first xdg_surface.configure call must * also be treated as errors. * * For a surface to be mapped...
launchpad #0 GitHub None #2 环境 Mac #3 需求分析 launchpad的图标太大,需要更改成小的 #4 开始...