display: Replace some meta_warning()

Some are replaced with g_warning(), some are not replaced yet, as they
will be handled differently.

One warning was turned into a META_DEBUG_DISPLAY, due to it being easily
hit in CI, while being extremely unlikely otherwise.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4005>
This commit is contained in:
Jonas Ådahl 2024-12-30 16:03:46 +01:00 committed by Marge Bot
parent 3a7e75e8b3
commit a68b6dae6a

View File

@ -1872,8 +1872,8 @@ meta_display_ping_window (MetaWindow *window,
if (serial == 0) if (serial == 0)
{ {
meta_warning ("Tried to ping window %s with a bad serial! Not allowed.", g_warning ("Tried to ping window %s with a bad serial! Not allowed.",
window->desc); window->desc);
return; return;
} }
@ -1894,9 +1894,10 @@ meta_display_ping_window (MetaWindow *window,
if (serial == pending_ping_data->serial) if (serial == pending_ping_data->serial)
{ {
meta_warning ("Ping serial %u was reused for window %s, " meta_topic (META_DEBUG_DISPLAY,
"previous use was for window %s.", "Ping serial %u was reused for window %s, "
serial, window->desc, pending_ping_data->window->desc); "previous use was for window %s.",
serial, window->desc, pending_ping_data->window->desc);
return; return;
} }
} }