]> Dogcows Code - chaz/openbox/commitdiff
fix a silly copy paste bug, titlenumber should now be disableable
authorMikael Magnusson <mikachu@comhem.se>
Fri, 18 Aug 2006 21:23:02 +0000 (21:23 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 18 Aug 2006 21:23:02 +0000 (21:23 +0000)
openbox/client.c
openbox/config.c

index d107c470854d73f27d94436b5a6da80f6c1f92d2..21673535d06f3a505323d3bed5afc4d94593e846 100644 (file)
@@ -1546,11 +1546,12 @@ void client_update_title(ObClient *self)
         }
     }
 
-    /* did the title change? then reset the title_count */
-    if (old_title && 0 != strncmp(old_title, data, strlen(data)))
-        self->title_count = 1;
-
     if (config_title_number) {
+
+        /* did the title change? then reset the title_count */
+        if (old_title && 0 != strncmp(old_title, data, strlen(data)))
+            self->title_count = 1;
+
         /* look for duplicates and append a number */
         nums = 0;
         for (it = client_list; it; it = g_list_next(it))
@@ -1573,7 +1574,8 @@ void client_update_title(ObClient *self)
             g_free(data);
             data = ndata;
         }
-    }
+    } else
+        self->title_count = 1;
 
 no_number:
     PROP_SETS(self->window, net_wm_visible_name, data);
index 0eb602211251166c6dc55c683d741ef1ffe7a4ca..c8ffe0c67ca66b178466c656a4e19a05c91f3428 100644 (file)
@@ -432,7 +432,7 @@ static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
         config_title_layout = parse_string(doc, n);
     }
     if ((n = parse_find_node("titleNumber", node)))
-        config_theme_hidedisabled = parse_bool(doc, n);
+        config_theme_titlenumber = parse_bool(doc, n);
     if ((n = parse_find_node("keepBorder", node)))
         config_theme_keepborder = parse_bool(doc, n);
     if ((n = parse_find_node("hideDisabled", node)))
This page took 0.029648 seconds and 4 git commands to generate.