/* finally, the user can have requested no decorations, which overrides
everything (but doesnt give it a border if it doesnt have one) */
- if (self->undecorated)
- self->decorations = 0; //&= OB_FRAME_DECOR_BORDER;
+ if (self->undecorated) {
+ if (config_theme_keepborder)
+ self->decorations &= OB_FRAME_DECOR_BORDER;
+ else
+ self->decorations = 0;
+ }
/* if we don't have a titlebar, then we cannot shade! */
if (!(self->decorations & OB_FRAME_DECOR_TITLEBAR))
/* 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)
- data = '\0';
- else
+ if (self->transient) {
+ data = g_strdup("");
+ goto no_number;
+ } else
data = g_strdup("Unnamed Window");
/* did the title change? then reset the title_count */
}
PROP_SETS(self->window, net_wm_visible_name, data);
-
+no_number:
self->title = data;
if (self->frame)