mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
x11/events: Fly-by coding style cleanup
A large else block didn't have {}, so added them. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1700>
This commit is contained in:
parent
72704f787c
commit
6c7765439f
@ -676,29 +676,28 @@ meta_spew_core_event (MetaX11Display *x11_display,
|
|||||||
alarm_state_to_string (aevent->state));
|
alarm_state_to_string (aevent->state));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (META_X11_DISPLAY_HAS_SHAPE (x11_display) &&
|
{
|
||||||
event->type == (x11_display->shape_event_base + ShapeNotify))
|
if (META_X11_DISPLAY_HAS_SHAPE (x11_display) &&
|
||||||
{
|
event->type == (x11_display->shape_event_base + ShapeNotify))
|
||||||
XShapeEvent *sev = (XShapeEvent*) event;
|
{
|
||||||
|
XShapeEvent *sev = (XShapeEvent*) event;
|
||||||
|
|
||||||
name = "ShapeNotify";
|
extra =
|
||||||
|
g_strdup_printf ("kind: %s "
|
||||||
extra =
|
"x: %d y: %d w: %u h: %u "
|
||||||
g_strdup_printf ("kind: %s "
|
"shaped: %d",
|
||||||
"x: %d y: %d w: %u h: %u "
|
sev->kind == ShapeBounding ?
|
||||||
"shaped: %d",
|
"ShapeBounding" :
|
||||||
sev->kind == ShapeBounding ?
|
(sev->kind == ShapeClip ?
|
||||||
"ShapeBounding" :
|
"ShapeClip" : "(unknown)"),
|
||||||
(sev->kind == ShapeClip ?
|
sev->x, sev->y, sev->width, sev->height,
|
||||||
"ShapeClip" : "(unknown)"),
|
sev->shaped);
|
||||||
sev->x, sev->y, sev->width, sev->height,
|
}
|
||||||
sev->shaped);
|
else
|
||||||
}
|
{
|
||||||
else
|
extra = g_strdup_printf ("type: %d", event->xany.type);
|
||||||
{
|
}
|
||||||
name = "(Unknown event)";
|
}
|
||||||
extra = g_strdup_printf ("type: %d", event->xany.type);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user