mirror of
https://github.com/labwc/labwc.git
synced 2026-02-05 04:06:33 -05: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)) {
|
||||
view->last_layout_geometry = view->pending;
|
||||
} else if (!wlr_box_empty(&view->natural_geometry)) {
|
||||
view->last_layout_geometry = view->natural_geometry;
|
||||
} else {
|
||||
/* e.g. initially-maximized window */
|
||||
view->last_layout_geometry =
|
||||
view_get_fallback_natural_geometry(view);
|
||||
view->last_layout_geometry = view->natural_geometry;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue