[metacity/matching] use title if we don't have a role



commit af0cf76df3eea6d6857a07a0193fd5bd0234c75e
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Jul 10 08:09:19 2009 -0400

    use title if we don't have a role

 src/core/matching.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/core/matching.c b/src/core/matching.c
index 8b72f6e..5a001e6 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 ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]