]> git.mdlowis.com Git - proto/labwc.git/commit
xdg: Handle corner case of move with pending resize correctly
authorJohn Lindgren <john@jlindgren.net>
Wed, 8 Feb 2023 21:25:16 +0000 (16:25 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 8 Feb 2023 22:22:10 +0000 (22:22 +0000)
commit103a2a8f6c38a8eb664160e369477cad98003598
tree4f09495d4eae88ebd8a51c964feb49bd03e6b068
parentcfc3c93102f0fe2b0bbd21b04ea32b357548b249
xdg: Handle corner case of move with pending resize correctly

If xdg_toplevel_view_move() is called when a resize is pending
(e.g. after xdg_toplevel_view_resize() but before handle_commit()),
the newer x/y coordinates passed to move() should take precendence
over the older pending_move_resize.x/y coordinates.

This is consistent with the logic used in xwayland.c's move().
src/xdg.c