shell: Implement "driver" method of fullsceen.
authorAlex Wu <zhiwen.wu@linux.intel.com>
Tue, 17 Apr 2012 09:20:49 +0000 (17:20 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 17 Apr 2012 18:38:45 +0000 (14:38 -0400)
commitbd3354b8b2587eef7befac958c31e9aeda29461a
tree537fd69561f4bfa24ddc9dce26df6af64be4bc6d
parentb7b8bda60079c4cdf3b33f97230d0cc56991912c
shell: Implement "driver" method of fullsceen.

Switching display mode may happen when:
1. The fullscreen surface is at top most in fullscreen layer and with
   "driver" method. Shell will switch output mode to match the surface
   size. If no matched mode found, fall back to "fill" method.
2. The top fullscreen surface is destroyed or unset. Switch back to the
   origin mode.
src/compositor-drm.c
src/compositor-openwfd.c
src/compositor-wayland.c
src/compositor-x11.c
src/compositor.h
src/shell.c