Our shell extension only supports a single QWaylandSurfaceRole, but it is still important that we assign it to the QWaylandSurface when we create a shell surface for it. This virtual function is called whenever a client issues the request on the connection. Wl_resource_get_version(resource - >handle), id)) Īuto *shellSurface = new ExampleShellSurface( this, surface, shellSurfaceResource) QWaylandResource shellSurfaceResource(wl_resource_create(resource - >client(), & ::qt_example_shell_surface_interface , If ( !surface - >setRole(ExampleShellSurface ::role(), resource - >handle, QT_EXAMPLE_SHELL_ERROR_ROLE)) QWaylandSurface *surface = QWaylandSurface ::fromResource(surfaceResource) Void ExampleShell ::example_shell_surface_create(Resource *resource, wl_resource *surfaceResource, uint32_t id) In order for the shell integration to be discovered by a Qt client, we must reimplement the QWaylandShellIntegrationPlugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |