Skip to content

Commit

Permalink
[qtwayland] Emit a signal when the client destroys a surface. Contrib…
Browse files Browse the repository at this point in the history
…utes to JB#52857
  • Loading branch information
adenexter committed Feb 15, 2021
1 parent b836357 commit 0507ad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/compositor/compositor_api/qwaylandsurface.h
Expand Up @@ -214,6 +214,7 @@ public slots:
void visibilityChanged();
void pong();
void surfaceDestroyed();
void clientDestroyedSurface();

void configure(bool hasBuffer);
void redraw();
Expand Down
2 changes: 2 additions & 0 deletions src/compositor/wayland_wrapper/qwlsurface.cpp
Expand Up @@ -385,6 +385,8 @@ void Surface::surface_destroy_resource(Resource *)

void Surface::surface_destroy(Resource *resource)
{
emit m_waylandSurface->clientDestroyedSurface();

wl_resource_destroy(resource->handle);
}

Expand Down

0 comments on commit 0507ad0

Please sign in to comment.