desktop-shell: Invalidate saved position when output is destroyed
authorZhang, Xiong Y <xiong.y.zhang@intel.com>
Fri, 13 Dec 2013 20:10:57 +0000 (22:10 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 17 Dec 2013 01:23:08 +0000 (17:23 -0800)
commit31236932a1adb5e8eddd5a769b8a63b814bb4107
tree345336ade6397d0f26d2656a2a8990fc1efa0dd4
parent54e90c7e1e20d9d51f516b42b4c846d26a8cfb5e
desktop-shell: Invalidate saved position when output is destroyed

If the saved position for a fullscreen or maximized output view is in an
output that has been unplugged, the coordinates don't make sense
anymore. In that case, invalidate them and use the initial position
algorithm when changing them back to the basic state.

Signed-off-by: Zhang, Xiong Y <xiong.y.zhang@intel.com>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
desktop-shell/shell.c
src/compositor.c
src/compositor.h