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