From cd4f325ee7a3a64eb986931a0575e5f1c3c587c3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 22 Feb 2008 10:38:14 -0500 Subject: Let ObPrompts be modal dialogs, and when they are transient for a window, make it transient for its entire group, so it can be stacked at the highest level above other transients --- openbox/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 9fa311cf..32daf663 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3442,7 +3442,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) -- cgit v1.2.3 From fadc52e1869fbdda3d30a8131ca5c5c1da7c6e98 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 22 Feb 2008 10:52:04 -0500 Subject: Allow windows to specify a base-size of 0 This fixes the resize popup for terminal windows, if the base-size was 0, the size popup would be off by one. --- openbox/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 32daf663..fbe728d1 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1621,7 +1621,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); @@ -2895,7 +2895,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 { -- cgit v1.2.3