protocol: introduce wl_shell_surface
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 24 Nov 2011 14:19:03 +0000 (16:19 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Tue, 29 Nov 2011 12:46:49 +0000 (14:46 +0200)
commit42eed3235a8349ac2139bb9a06cb8ac294872809
tree64b3ff67c36dadc97d522f32e4bb10af8eac9ef1
parente04c137e86f3672f5274a3168a3e88483a191693
protocol: introduce wl_shell_surface

Requests like 'move' and 'set_toplevel' are really methods of a surface,
not methods of a global shell object. Move all these methods to a new
interface, wl_shell_surface.

The global object wl_shell will contain only 'get_shell_surface'
request, which creates and associates a wl_shell_surface object to a
given wl_surface object.

This will also give the shell plugin (if you look at the demo
compositor) means to store per-surface private data in a natural way.

Due to a limitation in delete_id event handling on client side, the
client must destroy its wl_shell_surface object before destroying the
wl_surface object. Otherwise it may just leak an id.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
protocol/wayland.xml