From b8096b1babf9afc90a3223cd0d8dc6210b2f4ce2 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Sun, 4 Sep 2022 22:47:54 -0400 Subject: [PATCH] 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. --- src/xdg.c | 2 +- src/xwayland.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }