From 7a6a516b8e3d8ad6b15379eabf6652a6f43eab27 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 13 Jun 2007 01:50:01 +0000 Subject: very cool struts. partial struts actually are partial struts now. possibly way broken with xinerama? --- openbox/frame.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openbox/frame.c') diff --git a/openbox/frame.c b/openbox/frame.c index 5b8e52fc..65d1404a 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -1492,6 +1492,13 @@ void frame_frame_gravity(ObFrame *self, gint *x, gint *y, gint w, gint h) } } +void frame_rect_to_frame(ObFrame *self, Rect *r) +{ + r->width += self->size.left + self->size.right; + r->height += self->size.top + self->size.bottom; + frame_client_gravity(self, &r->x, &r->y, r->width, r->height); +} + static void flash_done(gpointer data) { ObFrame *self = data; -- cgit v1.2.3