mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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:
parent
4e0ffba5c1
commit
8a64746ce4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user