Do not set output->current_mode in compositor.c
authorAxel Davy <axel.davy@ens.fr>
Fri, 8 Nov 2013 11:59:34 +0000 (12:59 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 28 Nov 2013 06:56:43 +0000 (22:56 -0800)
commit40ee921fffd37febddabe263c9e5e88320c52841
tree4499cd30d919c9d933abcd9fb86ba7d258fd7a25
parent1b55a5918c00faf879affc59c0f0e43a1eb816ff
Do not set output->current_mode in compositor.c

The field is already set - correctly - in the backend switch_mode.
setting output->current_mode to mode in compositor.c leads to bugs,
since mode can be freed by the shell.
For example, the shell allocates it on the stack for
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DRIVER

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/compositor.c