]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
update copyright notices
[chaz/openbox] / openbox / client.c
index 3fe108f51c1f7159ed24ece8ecb2e9879fc5a77e..a465f566326d58d29256d1addaef02eee7eef64b 100644 (file)
@@ -1,19 +1,20 @@
 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
-
-client.c for the Openbox window manager
-Copyright (c) 2003        Ben Jansens
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-See the COPYING file for a copy of the GNU General Public License.
+   
+   client.c for the Openbox window manager
+   Copyright (c) 2004        Mikael Magnusson
+   Copyright (c) 2003        Ben Jansens
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   See the COPYING file for a copy of the GNU General Public License.
 */
 
 #include "client.h"
@@ -1444,7 +1445,11 @@ void client_update_title(ObClient *self)
     if (!PROP_GETS(self->window, net_wm_name, utf8, &data))
         /* try old x stuff */
         if (!PROP_GETS(self->window, wm_name, locale, &data))
-            data = g_strdup("Unnamed Window");
+            // http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html
+            if (self->transient)
+                data = '\0';
+            else
+                data = g_strdup("Unnamed Window");
 
     /* did the title change? then reset the title_count */
     if (old_title && 0 != strncmp(old_title, data, strlen(data)))
@@ -1505,12 +1510,6 @@ void client_update_title(ObClient *self)
         data = vdata;
     }
 
-    // http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html
-    if (self->transient)
-        data = '\0';
-    else
-        data = g_strdup("Unnamed Window");
-
     PROP_SETS(self->window, net_wm_visible_icon_name, data);
 
     self->icon_title = data;
This page took 0.02162 seconds and 4 git commands to generate.