mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Fix views unmapping their own fullscreen windows.
This commit is contained in:
parent
143b528f71
commit
cc4da245a8
|
@ -104,11 +104,6 @@ void view_set_fullscreen(struct sway_view *view, bool fullscreen) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void view_close(struct sway_view *view) {
|
void view_close(struct sway_view *view) {
|
||||||
if (view->is_fullscreen) {
|
|
||||||
struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
|
|
||||||
ws->sway_workspace->fullscreen = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (view->impl->close) {
|
if (view->impl->close) {
|
||||||
view->impl->close(view);
|
view->impl->close(view);
|
||||||
}
|
}
|
||||||
|
@ -232,6 +227,11 @@ void view_unmap(struct sway_view *view) {
|
||||||
|
|
||||||
wl_signal_emit(&view->events.unmap, view);
|
wl_signal_emit(&view->events.unmap, view);
|
||||||
|
|
||||||
|
if (view->is_fullscreen) {
|
||||||
|
struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
|
||||||
|
ws->sway_workspace->fullscreen = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
view_damage(view, true);
|
view_damage(view, true);
|
||||||
|
|
||||||
wl_list_remove(&view->surface_new_subsurface.link);
|
wl_list_remove(&view->surface_new_subsurface.link);
|
||||||
|
|
Loading…
Reference in a new issue