Skip to content

Commit

Permalink
Merge pull request #3 from sailfishos/jb52857_new
Browse files Browse the repository at this point in the history
[qtwayland] Emit a signal when the client destroys a surface. Contributes to JB#52857
  • Loading branch information
krnlyng authored Jan 30, 2024
2 parents 58b9950 + 8173b52 commit 1f67060
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
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public Q_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
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,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 1f67060

Please sign in to comment.