clutter/clutter-stage: Get rid of an unused variable warning

When building mutter with -Ddebug=false, a warning appears, that
`ClutterStagePrivate *priv` is unused.
Simply remove this variable and directly use `stage->priv` in
`CLUTTER_NOTE` to get rid of this warning.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3046>
This commit is contained in:
Pascal Nowack 2023-06-02 10:41:43 +02:00
parent 9a6ee5d7c7
commit 30a5178204

View File

@ -3878,7 +3878,6 @@ clutter_stage_notify_grab_on_pointer_entry (ClutterStage *stage,
ClutterActor *grab_actor,
ClutterActor *old_grab_actor)
{
ClutterStagePrivate *priv = stage->priv;
gboolean pointer_in_grab, pointer_in_old_grab;
gboolean implicit_grab_cancelled = FALSE;
ClutterEventType event_type = CLUTTER_NOTHING;
@ -3947,7 +3946,7 @@ clutter_stage_notify_grab_on_pointer_entry (ClutterStage *stage,
CLUTTER_NOTE (GRABS,
"[grab=%p device=%p sequence=%p implicit_grab_cancelled=%d] "
"Cancelled %u actors and actions on implicit grab due to new seat grab",
priv->topmost_grab, device, sequence, implicit_grab_cancelled,
stage->priv->topmost_grab, device, sequence, implicit_grab_cancelled,
n_removed);
}
}