X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=b7ed57b5b086e06182320f048250c78a00d6e115;hb=3fb94dfc5f07635116cf7af124a8e5651323840b;hp=983e3afd8ac1ca840e86094072627ff2c688345f;hpb=a70e22c557cb0aebbb39100681b2772b731947de;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 983e3afd..b7ed57b5 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1450,9 +1450,10 @@ void client_update_title(ObClient *self) /* try old x stuff */ if (!PROP_GETS(self->window, wm_name, locale, &data)) // http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html - if (self->transient) + if (self->transient) { data = g_strdup(""); - else + goto no_number; + } else data = g_strdup("Unnamed Window"); /* did the title change? then reset the title_count */ @@ -1483,7 +1484,7 @@ void client_update_title(ObClient *self) } PROP_SETS(self->window, net_wm_visible_name, data); - +no_number: self->title = data; if (self->frame) @@ -2896,7 +2897,10 @@ ObClient *client_find_directional(ObClient *c, ObDirection dir) continue; if (!client_normal(cur)) continue; - if(c->desktop != cur->desktop && cur->desktop != DESKTOP_ALL) + /* using c->desktop instead of screen_desktop doesn't work if the + * current window was omnipresent, hope this doesn't have any other + * side effects */ + if(screen_desktop != cur->desktop && cur->desktop != DESKTOP_ALL) continue; if(cur->iconic) continue; @@ -3143,7 +3147,7 @@ gint client_directional_edge_search(ObClient *c, ObDirection dir) continue; if(!client_normal(cur)) continue; - if(c->desktop != cur->desktop && cur->desktop != DESKTOP_ALL) + if(screen_desktop != cur->desktop && cur->desktop != DESKTOP_ALL) continue; if(cur->iconic) continue; @@ -3184,7 +3188,7 @@ gint client_directional_edge_search(ObClient *c, ObDirection dir) continue; if(!client_normal(cur)) continue; - if(c->desktop != cur->desktop && cur->desktop != DESKTOP_ALL) + if(screen_desktop != cur->desktop && cur->desktop != DESKTOP_ALL) continue; if(cur->iconic) continue; @@ -3226,7 +3230,7 @@ gint client_directional_edge_search(ObClient *c, ObDirection dir) continue; if(!client_normal(cur)) continue; - if(c->desktop != cur->desktop && cur->desktop != DESKTOP_ALL) + if(screen_desktop != cur->desktop && cur->desktop != DESKTOP_ALL) continue; if(cur->iconic) continue; @@ -3268,7 +3272,7 @@ gint client_directional_edge_search(ObClient *c, ObDirection dir) continue; if(!client_normal(cur)) continue; - if(c->desktop != cur->desktop && cur->desktop != DESKTOP_ALL) + if(screen_desktop != cur->desktop && cur->desktop != DESKTOP_ALL) continue; if(cur->iconic) continue;