diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2022-11-20 20:35:29 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-12-17 13:25:13 +0000 |
commit | 8a64746ce4ccfd66762a2e15ad02106e6f92c643 (patch) | |
tree | d2827d900a0abd2de1e3aa46dbc2034736fbf446 | |
parent | 4e0ffba5c13b0cbb7501976e878db2ddbb57a86b (diff) | |
download | mutter-8a64746ce4ccfd66762a2e15ad02106e6f92c643.tar.gz |
workspace: Warn instead of abort on incorrect API usage
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2707>
-rw-r--r-- | src/core/workspace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/workspace.c b/src/core/workspace.c index c1360a4c4..98f6d71ff 100644 --- a/src/core/workspace.c +++ b/src/core/workspace.c @@ -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; } |