weston/src
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
..
animation.c animation: also change stop value when updating a fade target 2014-07-30 10:54:23 -07:00
bindings.c input: send focus events to the focused client when running a key binding 2014-12-01 16:26:53 +02:00
clipboard.c Use zalloc rather than malloc and manually setting members to 0 2014-11-28 16:05:39 +02:00
cms-colord.c cosmetic: replace boolean function return values with bool 2014-11-04 12:45:49 +02:00
cms-helper.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
cms-helper.h Add more missing config.h includes 2013-08-16 10:56:00 -07:00
cms-static.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
compositor-drm.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
compositor-fbdev.c fbdev: Remove unnecessary semicolon 2014-12-03 15:53:03 +00:00
compositor-headless.c compositor-headless: add support for transforms set on command line 2014-11-21 16:30:42 +02:00
compositor-rdp.c compositor: Refactor weston_output_mode_switch() 2014-11-05 13:15:13 +02:00
compositor-rpi.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
compositor-wayland.c backends: refactor transform string parsing 2014-11-19 16:46:56 +02:00
compositor-x11.c backends: refactor transform string parsing 2014-11-19 16:46:56 +02:00
compositor.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
compositor.h compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
data-device.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
dbus.c dbus: add dbus-match helpers 2013-10-21 16:07:10 -07:00
dbus.h dbus: add dbus-match helpers 2013-10-21 16:07:10 -07:00
gl-renderer.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
gl-renderer.h gl-renderer: Remove gl_renderer_interface from gl-renderer.h 2014-04-21 15:43:05 -07:00
input.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
launcher-util.c launcher-util: Initialize kb_mode also when weston-launch sets up tty 2014-04-30 10:40:39 -07:00
launcher-util.h launcher: add logind backend 2013-10-21 16:23:58 -07:00
libbacklight.c backlight: fix backlight_path memory leak 2014-01-19 21:58:53 -08:00
libbacklight.h Fix a few -pedantic warnings 2012-05-10 14:11:44 -04:00
libinput-device.c input: Use slightly less obscure logic in evdev_notify_keyboard_focus() 2014-11-27 15:26:04 +02:00
libinput-device.h Add libinput based input device backend 2014-03-12 14:55:22 -07:00
libinput-seat.c libinput: default to INFO log level 2014-09-12 12:15:44 +03:00
libinput-seat.h Add libinput based input device backend 2014-03-12 14:55:22 -07:00
log.c log: print dummy timestamp if localtime call fails 2014-01-19 21:58:57 -08:00
logind-util.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
logind-util.h launcher: add logind backend 2013-10-21 16:23:58 -07:00
noop-renderer.c noop-renderer: Read the shm buffer contents on attach 2014-02-18 13:49:21 -08:00
pixman-renderer.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
pixman-renderer.h Add more missing config.h includes 2013-08-16 10:56:00 -07:00
rpi-bcm-stubs.h rpi: Support opaque regions 2013-12-02 11:36:29 -08:00
rpi-renderer.c rpi-renderer: don't pass a box to pixman_region32_contains_point() 2014-12-01 14:30:28 +02:00
rpi-renderer.h rpi: Support opaque regions 2013-12-02 11:36:29 -08:00
screen-share.c Don't protect xkb_*_unref from NULL 2014-08-20 01:05:16 -07:00
screenshooter.c Use zalloc rather than malloc and manually setting members to 0 2014-11-28 16:05:39 +02:00
spring-tool.c animation: ensure repaints are always scheduled during animations 2014-06-18 17:14:40 -07:00
text-backend.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
vaapi-recorder.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
vaapi-recorder.h vaapi-recorder: Don't loop trying to write on out of space condition 2014-05-09 14:12:38 -07:00
version.h.in Document WESTON_VERSION_AT_LEAST() macro behavior 2014-01-27 12:07:19 -08:00
vertex-clipping.c Don't underrun the vertex array of empty polygons 2014-08-20 11:43:26 +03:00
vertex-clipping.h Remove dependency on <GLES2/gl2.h> by replacing GLfloat with float 2013-11-27 22:49:31 -08:00
weston-egl-ext.h nested: add missing egl extension declaration 2014-08-27 16:44:31 +03:00
weston-launch.c cosmetic: replace boolean function return values with bool 2014-11-04 12:45:49 +02:00
weston-launch.h launcher: Handle drm set/drop master and vt switch signals in launcher 2013-09-18 11:14:14 -07:00
weston.pc.in weston.pc: Added libexecdir and pkglibexecdir variables 2013-06-04 00:14:04 -04:00
zoom.c Apply the zoom transformation before the output transformation 2014-05-06 15:36:55 -07:00