view: Call view_moved() immediately after map

At least for XWayland surfaces, handle_commit() is not always
called after map(), and as a result, the scene-graph node is never
positioned.

Not sure 100% if the same can occur with XDG surfaces, but the
extra view_moved() call should be harmless, so add it there too
for consistency.
This commit is contained in:
John Lindgren 2022-09-04 22:47:54 -04:00 committed by Johan Malm
parent 05b7afd05a
commit b8096b1bab
2 changed files with 2 additions and 2 deletions

View file

@ -307,7 +307,7 @@ xdg_toplevel_view_map(struct view *view)
view_maximize(view, true);
}
view_discover_output(view);
view_moved(view);
view->been_mapped = true;
}