mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
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`.
This commit is contained in:
parent
3dec9cf40c
commit
1b30edc778
3 changed files with 17 additions and 5 deletions
|
|
@ -267,7 +267,7 @@ view_output(struct view *view)
|
|||
return output_from_wlr_output(view->server, wlr_output);
|
||||
}
|
||||
|
||||
static bool
|
||||
bool
|
||||
view_compute_centered_position(struct view *view, int w, int h, int *x, int *y)
|
||||
{
|
||||
struct output *output = view_output(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue