]> git.mdlowis.com Git - proto/labwc.git/commit
view: Unify view_move()/view_move_resize()
authorJohn Lindgren <john@jlindgren.net>
Thu, 9 Feb 2023 06:07:07 +0000 (01:07 -0500)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 16 Feb 2023 04:21:47 +0000 (05:21 +0100)
commit0ca6c4c763eaee091a3abeddd135eb6272fcfd26
tree999f1a6b2990d50b7786173bc9051d66224cc784
parent859eba1c6bffd85c7c60a0389b39df267c106043
view: Unify view_move()/view_move_resize()

view->impl->move() is a specific case of view->impl->configure().
To reduce code duplication, we can use view->impl->configure() for
pure moves (without resize) as well.

xwayland's move() function also possibly contained a race condition
when there was a pending resize, as it used the current surface
width/height rather than the pending width/height. This is fixed.
include/view.h
src/view.c
src/xdg.c
src/xwayland.c