mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
rootston: unmap view after emitting destroy signal in view_destroy
This commit is contained in:
parent
c1c88bfe5d
commit
125138f1a0
1 changed files with 2 additions and 2 deletions
|
|
@ -417,12 +417,12 @@ void view_destroy(struct roots_view *view) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wl_signal_emit(&view->events.destroy, view);
|
||||||
|
|
||||||
if (view->wlr_surface != NULL) {
|
if (view->wlr_surface != NULL) {
|
||||||
view_unmap(view);
|
view_unmap(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_signal_emit(&view->events.destroy, view);
|
|
||||||
|
|
||||||
if (view->destroy) {
|
if (view->destroy) {
|
||||||
view->destroy(view);
|
view->destroy(view);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue