summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2022-11-20 20:35:29 +0100
committerRobert Mader <robert.mader@collabora.com>2023-01-06 13:53:08 +0100
commit6b8f044e279774168a7d16e2bbbbc268974e3203 (patch)
tree18992f4add129a78d6d7eacea3346b738efd2326
parent762fcb6419a7f77cf3b7bd1103f0b350f874af15 (diff)
downloadmutter-6b8f044e279774168a7d16e2bbbbc268974e3203.tar.gz
workspace: Warn instead of abort on incorrect API usage
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2707> (cherry picked from commit 8a64746ce4ccfd66762a2e15ad02106e6f92c643)
-rw-r--r--src/core/workspace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/workspace.c b/src/core/workspace.c
index 3bd517fca..d2ad19e36 100644
--- a/src/core/workspace.c
+++ b/src/core/workspace.c
@@ -501,7 +501,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;
}
@@ -525,7 +525,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;
}