mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 08:58:08 +02:00
shell: Set state_changed when we make a surface transient
If we don't mark the state as changed, we don't copy over next_state to state and we fail to treat the surface as a transient. In particular, we give it a random intial position instead of mapping it at the given parent relative position. https://bugs.freedesktop.org/show_bug.cgi?id=72532
This commit is contained in:
parent
fb8546e45f
commit
a1df7acb78
1 changed files with 1 additions and 0 deletions
|
|
@ -2158,6 +2158,7 @@ set_transient(struct shell_surface *shsurf,
|
|||
shsurf->transient.flags = flags;
|
||||
|
||||
shsurf->next_state.relative = true;
|
||||
shsurf->state_changed = true;
|
||||
shsurf->type = SHELL_SURFACE_TOPLEVEL;
|
||||
|
||||
/* The layer_link is updated in set_surface_type(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue