summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-07-10 08:09:19 -0400
committerThomas Thurman <tthurman@gnome.org>2009-07-10 08:09:19 -0400
commitaf0cf76df3eea6d6857a07a0193fd5bd0234c75e (patch)
tree2eb65f5974d2395a0d9d9a3df496c6bd5dd23a03
parent9bdb9ac8b6a2716d82a4f05b1692e19dfff6c347 (diff)
downloadmetacity-af0cf76df3eea6d6857a07a0193fd5bd0234c75e.tar.gz
use title if we don't have a role
-rw-r--r--src/core/matching.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/matching.c b/src/core/matching.c
index 8b72f6e8..5a001e63 100644
--- a/src/core/matching.c
+++ b/src/core/matching.c
@@ -55,11 +55,11 @@ meta_matching_save_to_role (MetaWindow *window)
gint x, y, w, h;
gchar *role = window->role;
+ if (!role) /* hacky fallback */
+ role = window->title;
+
if (!role)
- {
- g_warning ("No role: aborting\n");
return;
- }
load_matching_data ();