X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=8e3dd1ee501f870336f8de01133d65019cff2b69;hb=e3786e64fb0786632b89ff086b818c0a3b0522b7;hp=538cfbeda95e3112c6e6c5fff6252cd7c264b968;hpb=d50f4917169e8d354f62dd639afde0efe807760c;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 538cfbed..8e3dd1ee 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1257,7 +1257,7 @@ void client_setup_decor_and_functions(ObClient *self) /* 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 &= OB_FRAME_DECOR_BORDER; + self->decorations = 0; //&= OB_FRAME_DECOR_BORDER; /* if we don't have a titlebar, then we cannot shade! */ if (!(self->decorations & OB_FRAME_DECOR_TITLEBAR)) @@ -1505,6 +1505,12 @@ 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; @@ -2053,26 +2059,28 @@ void client_configure_full(ObClient *self, ObCorner anchor, w -= self->base_size.width; h -= self->base_size.height; - if (self->min_ratio) - if (h * self->min_ratio > w) { - h = (gint)(w / self->min_ratio); + if (!self->fullscreen) { + if (self->min_ratio) + if (h * self->min_ratio > w) { + h = (gint)(w / self->min_ratio); - /* you cannot resize to nothing */ - if (h < 1) { - h = 1; - w = (gint)(h * self->min_ratio); + /* you cannot resize to nothing */ + if (h < 1) { + h = 1; + w = (gint)(h * self->min_ratio); + } } - } - if (self->max_ratio) - if (h * self->max_ratio < w) { - h = (gint)(w / self->max_ratio); - - /* you cannot resize to nothing */ - if (h < 1) { - h = 1; - w = (gint)(h * self->min_ratio); + if (self->max_ratio) + if (h * self->max_ratio < w) { + h = (gint)(w / self->max_ratio); + + /* you cannot resize to nothing */ + if (h < 1) { + h = 1; + w = (gint)(h * self->min_ratio); + } } - } + } w += self->base_size.width; h += self->base_size.height; @@ -2108,9 +2116,9 @@ void client_configure_full(ObClient *self, ObCorner anchor, resizing in redraw mode */ send_resize_client = ((!user && resized) || (user && (final || - (resized && config_redraw_resize)))); + (resized && config_resize_redraw)))); - /* if the client is enlarging, the resize the client before the frame */ + /* if the client is enlarging, then resize the client before the frame */ if (send_resize_client && user && (w > oldw || h > oldh)) XResizeWindow(ob_display, self->window, MAX(w, oldw), MAX(h, oldh));