mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
src/view.c: ensure natural geometry is restored even with no outputs available
Reported-by: @Flrian
This commit is contained in:
parent
0d8b459912
commit
c75508fcc5
1 changed files with 2 additions and 2 deletions
|
|
@ -358,8 +358,8 @@ static void
|
||||||
view_apply_natural_geometry(struct view *view)
|
view_apply_natural_geometry(struct view *view)
|
||||||
{
|
{
|
||||||
struct wlr_output_layout *layout = view->server->output_layout;
|
struct wlr_output_layout *layout = view->server->output_layout;
|
||||||
if (wlr_output_layout_intersects(layout, NULL,
|
if (wlr_output_layout_intersects(layout, NULL, &view->natural_geometry)
|
||||||
&view->natural_geometry)) {
|
|| wl_list_empty(&layout->outputs)) {
|
||||||
/* restore to original geometry */
|
/* restore to original geometry */
|
||||||
view_move_resize(view, view->natural_geometry);
|
view_move_resize(view, view->natural_geometry);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue