mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
Fix segfault when enabling debugging notes
This commit is contained in:
parent
b8a00aa881
commit
aeb7c6926b
@ -877,12 +877,11 @@ _clutter_input_device_update (ClutterInputDevice *device,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
CLUTTER_NOTE (EVENT,
|
CLUTTER_NOTE (EVENT,
|
||||||
"Actor under cursor (device %d, at %d, %d): %s",
|
"Actor under cursor (device %d, at %.2f, %.2f): %s",
|
||||||
clutter_input_device_get_device_id (device),
|
clutter_input_device_get_device_id (device),
|
||||||
point.x, point.y,
|
point.x,
|
||||||
clutter_actor_get_name (new_cursor_actor) != NULL
|
point.y,
|
||||||
? clutter_actor_get_name (new_cursor_actor)
|
_clutter_actor_get_debug_name (new_cursor_actor));
|
||||||
: G_OBJECT_TYPE_NAME (new_cursor_actor));
|
|
||||||
|
|
||||||
/* short-circuit here */
|
/* short-circuit here */
|
||||||
if (new_cursor_actor == old_cursor_actor)
|
if (new_cursor_actor == old_cursor_actor)
|
||||||
|
Loading…
Reference in New Issue
Block a user