]> git.mdlowis.com Git - proto/labwc.git/commit
don't set view->w and view->h when mapping xdg views
authorbi4k8 <bi4k8@github>
Sat, 17 Dec 2022 20:47:46 +0000 (20:47 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 19 Dec 2022 17:21:07 +0000 (18:21 +0100)
commit1b30edc778d597e06d74c7fbec62c7a8b13fab4e
tree24c825644a44ae72e0b29ca8946eb6820ceae9fd
parent3dec9cf40cebe0e231e42722caa3c8fbdc2d5f83
don't set view->w and view->h when mapping xdg views

these should only be set on commit. doing so before then confuses
code that expects these fields to be in sync with the scene tree,
such as `handle_commit`.

these were only being set so that `view_center` could read them to
compute a centered position, so instead we can simply forward the
values directly to `view_compute_centered_position` and `view_move`.
include/view.h
src/view.c
src/xdg.c