From: John Lindgren Date: Mon, 5 Sep 2022 02:47:54 +0000 (-0400) Subject: view: Call view_moved() immediately after map X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=b8096b1babf9afc90a3223cd0d8dc6210b2f4ce2;p=proto%2Flabwc.git 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. --- diff --git a/src/xdg.c b/src/xdg.c index c52c2084..e75ac138 100644 --- a/src/xdg.c +++ b/src/xdg.c @@ -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; } diff --git a/src/xwayland.c b/src/xwayland.c index ca4646dc..5bfacece 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -340,7 +340,7 @@ map(struct view *view) view_center(view); } - view_discover_output(view); + view_moved(view); view->been_mapped = true; }