weston/desktop-shell
Pekka Paalanen 8274d901f1 compositor: add weston_surface_set_label_func()
When printing out logs from Weston's actions, mainly for debugging, it
can be very difficult to identify the different surfaces.  Inspecting
the configure function pointer is not useful, as the configure functions
may live in modules.

Add vfunc get_label to weston_surface, which will produce a short,
human-readable description of the surface, which allows identifying it
better, rather than just looking at the surface size, for instance.

Set the label function from most parts of Weston, to identify cursors and
drag icons, and panels, backgrounds, screensavers and lock surfaces, and
the desktop shell's application surfaces.

v2: renamed 'description' to 'label', so we get
	weston_surface_set_label_func().

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-12-08 14:20:20 +02:00
..
exposay.c compositor: keep track of the weston_layer a weston_view is in 2014-07-23 12:34:33 -07:00
input-panel.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
shell.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
shell.h shell: quit weston, if weston-desktop-shell dies early 2014-09-01 10:18:59 +03:00