shell: Factor out code to set the layer for a shsurf
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 25 Nov 2013 18:01:40 +0000 (18:01 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 2 Dec 2013 19:44:50 +0000 (11:44 -0800)
commit07926d90d1b12d7dc0f5c0c582f091ff84f73a27
tree535134d724cccab4785475322eb5d975f156525a
parentb995e1d0531ba7156e1319002dafed80a7ca2a09
shell: Factor out code to set the layer for a shsurf

This will be used more extensively in the next few commits, where shsurf
layering is handled more explicitly when changing the type of a surface.

This commit introduces the minor functional change that map() will now
always add the new surface to a layer list, as
shell_surface_calculate_layer_link() always returns a non-NULL link
element. This affects fullscreen and ‘none’ surfaces (which are now added
to the fullscreen and current workspace’s layer list, respectively).
src/shell.c