summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-12-31 15:01:01 -0800
committerKristian Høgsberg <krh@bitplanet.net>2013-12-31 15:01:09 -0800
commita1df7acb78e0fde8eb3165a0e1c1a77da50ea651 (patch)
tree0172fa6de58014e4e7f2417bb58ef032a9fbf4e8
parentfb8546e45f314fd4d24c5fdfea147d7f20a6f0d7 (diff)
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
-rw-r--r--desktop-shell/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 714881bd..7ee462fc 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -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(),