shell: Set a surface as TOPLEVEL instead of the old surface types.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Dec 2013 20:53:17 +0000 (18:53 -0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Dec 2013 23:15:11 +0000 (15:15 -0800)
commitdb59f9a53f7ae9d3a5be0c2c0962d360ad36af5e
tree359cfd2d2b2b7eb13003b615cb0c60b96880156d
parenta98c2e17fd35e70bf50cdfac5a884aa639b99a92
shell: Set a surface as TOPLEVEL instead of the old surface types.

Since internally there's no more SHELL_SURFACE_FULLSCREEN and
SHELL_SURFACE_MAXIMIZED, the surface must be set to
SHELL_SURFACE_TOPLEVEL on the respective functions.

This fixes the bug when clients start already in fullscreen mode. In
that case, they aren't set first to toplevel, and then change to
fullscreen. They are set as fullscreen directly, not receiving the
SHELL_SURFACE_TOPLEVEL type on the set_fullscreen function.
desktop-shell/shell.c