workspace: Warn instead of abort on incorrect API usage

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2707>
This commit is contained in:
Jonas Ådahl 2022-11-20 20:35:29 +01:00 committed by Marge Bot
parent 4e0ffba5c1
commit 8a64746ce4

View File

@ -504,7 +504,7 @@ workspace_switch_sound(MetaWorkspace *from,
if (i >= nw)
{
meta_bug("Failed to find destination workspace in layout");
g_warning ("Failed to find destination workspace in layout");
goto finish;
}
@ -528,7 +528,7 @@ workspace_switch_sound(MetaWorkspace *from,
e = "desktop-switch-down";
else
{
meta_bug("Uh, origin and destination workspace at same logic position!");
g_warn_if_reached ();
goto finish;
}