mirror of
https://github.com/labwc/labwc.git
synced 2026-03-18 05:33:53 -04:00
Revert "view: restore initially-maximized window position after unplug/plug"
This did not fix the issue reliably, since view_get_fallback_natural_geometry()
returned a position of (0,0) if the output was already disconnected.
This reverts commit 72a5df16ea.
This commit is contained in:
parent
9600c73ea4
commit
ab8f186ea4
1 changed files with 1 additions and 5 deletions
|
|
@ -1736,12 +1736,8 @@ update_last_layout_geometry(struct view *view)
|
||||||
|
|
||||||
if (view_is_floating(view)) {
|
if (view_is_floating(view)) {
|
||||||
view->last_layout_geometry = view->pending;
|
view->last_layout_geometry = view->pending;
|
||||||
} else if (!wlr_box_empty(&view->natural_geometry)) {
|
|
||||||
view->last_layout_geometry = view->natural_geometry;
|
|
||||||
} else {
|
} else {
|
||||||
/* e.g. initially-maximized window */
|
view->last_layout_geometry = view->natural_geometry;
|
||||||
view->last_layout_geometry =
|
|
||||||
view_get_fallback_natural_geometry(view);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue