diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2022-11-20 20:35:29 +0100 |
---|---|---|
committer | Robert Mader <robert.mader@collabora.com> | 2023-01-06 13:50:41 +0100 |
commit | cfebddea7e862a8b1c66841011e60bdb12a2390e (patch) | |
tree | ce5c7376fc6f70c9de445a42a53e8a09918d0edf | |
parent | 0d666743aa65e8414c6c3755d341edd9767cffdb (diff) | |
download | mutter-cfebddea7e862a8b1c66841011e60bdb12a2390e.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.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; } |