]> git.mdlowis.com Git - proto/labwc.git/commit
view: Call view_moved() immediately after map
authorJohn Lindgren <john@jlindgren.net>
Mon, 5 Sep 2022 02:47:54 +0000 (22:47 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 6 Sep 2022 11:39:22 +0000 (13:39 +0200)
commitb8096b1babf9afc90a3223cd0d8dc6210b2f4ce2
tree311b86becc61e2b62b5cfa3f8291f4a9f61cb966
parent05b7afd05a32abc6c167dae3d8634853bec78799
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
src/xwayland.c