mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04: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)
|
||||
{
|
||||
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