From 6b8f044e279774168a7d16e2bbbbc268974e3203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sun, 20 Nov 2022 20:35:29 +0100 Subject: workspace: Warn instead of abort on incorrect API usage Part-of: (cherry picked from commit 8a64746ce4ccfd66762a2e15ad02106e6f92c643) --- src/core/workspace.c | 4 ++-- 1 file 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; } -- cgit v1.2.1