summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-25 03:52:33 +0000
committerDana Jansens <danakj@orodu.net>2007-04-25 03:52:33 +0000
commit89658cf6487ce56ca59c7486b6b300af461ef75c (patch)
tree933501a2ba7ac897fc859b4da164a110a5a6a8f1
parent9fe12048a1b6dcf769089c97fe43eed1fdf40f80 (diff)
the inner stuff was being placed wrong all this time.
also give the inner window a border. clicking to the left/right of the client now will be the client context rather than the frame. frame is just for grabbed buttons after all.
-rw-r--r--openbox/frame.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index dc9d1601..5baaf16b 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -167,7 +167,7 @@ ObFrame *frame_new(ObClient *client)
static void set_theme_statics(ObFrame *self)
{
/* set colors/appearance/sizes for stuff that doesn't change */
- XSetWindowBorder(ob_display, self->window,
+ XSetWindowBorder(ob_display, self->inner,
RrColorPixel(ob_rr_theme->frame_b_color));
XSetWindowBorder(ob_display, self->title,
RrColorPixel(ob_rr_theme->frame_b_color));
@@ -346,6 +346,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
/* set border widths */
if (!fake) {
XSetWindowBorderWidth(ob_display, self->window, self->bwidth);
+ XSetWindowBorderWidth(ob_display, self->inner, self->bwidth);
XSetWindowBorderWidth(ob_display, self->title, self->rbwidth);
XSetWindowBorderWidth(ob_display, self->handle, self->rbwidth);
XSetWindowBorderWidth(ob_display, self->lgrip, self->rbwidth);
@@ -430,8 +431,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
/* move and resize the inner border window which contains the plate
*/
XMoveResizeWindow(ob_display, self->inner,
- self->innersize.left - self->cbwidth_x,
- self->innersize.top - self->cbwidth_y,
+ self->innersize.left - self->cbwidth_x -
+ self->bwidth,
+ self->innersize.top - self->cbwidth_y -
+ self->bwidth,
self->client->area.width +
self->cbwidth_x * 2,
self->client->area.height +