X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=blobdiff_plain;f=openbox%2Fclient.c;h=fe67b78bb112e585db7aa669a91d2cd274e642c8;hp=946e80d33dabdbe6e6e3f27343e0bca38d14f179;hb=97de73776708d7c75b42c8fcf33342541d721c83;hpb=198d98986bdf224ed29361541d19841339953088 diff --git a/openbox/client.c b/openbox/client.c index 946e80d..fe67b78 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1541,7 +1541,7 @@ void client_update_normal_hints(ObClient *self) self->min_ratio = 0.0f; self->max_ratio = 0.0f; SIZE_SET(self->size_inc, 1, 1); - SIZE_SET(self->base_size, 0, 0); + SIZE_SET(self->base_size, -1, -1); SIZE_SET(self->min_size, 0, 0); SIZE_SET(self->max_size, G_MAXINT, G_MAXINT); @@ -2817,7 +2817,7 @@ void client_try_configure(ObClient *self, gint *x, gint *y, gint *w, gint *h, 0 : self->max_ratio; /* base size is substituted with min size if not specified */ - if (self->base_size.width || self->base_size.height) { + if (self->base_size.width >= 0 || self->base_size.height >= 0) { basew = self->base_size.width; baseh = self->base_size.height; } else { @@ -3364,7 +3364,7 @@ static void client_prompt_kill(ObClient *self) g_free(m); } - prompt_show(self->kill_prompt, self); + prompt_show(self->kill_prompt, self, TRUE); } void client_kill(ObClient *self)