all repos — openbox @ bfb0c916718cd6f68ef100841a625b06602f616b

openbox fork - make it a bit more like ryudo

symmetry..tho it's not used right now
Dana Jansens danakj@orodu.net
commit

bfb0c916718cd6f68ef100841a625b06602f616b

parent

80120d04874bdbdd429016fe8db256cebac9812b

2 files changed, 11 insertions(+), 0 deletions(-)

jump to
M openbox/frame.copenbox/frame.c

@@ -1539,6 +1539,13 @@ r->height += self->size.top + self->size.bottom;

frame_client_gravity(self, &r->x, &r->y); } +void frame_rect_to_client(ObFrame *self, Rect *r) +{ + r->width -= self->size.left + self->size.right; + r->height -= self->size.top + self->size.bottom; + frame_frame_gravity(self, &r->x, &r->y); +} + static void flash_done(gpointer data) { ObFrame *self = data;
M openbox/frame.hopenbox/frame.h

@@ -237,6 +237,10 @@ /*! Convert a rectangle in client coordinates/sizes to what it would be

for the frame, given its current decorations sizes */ void frame_rect_to_frame(ObFrame *self, Rect *r); +/*! Convert a rectangle in frame coordinates/sizes to what it would be for the + client, given its current decorations sizes */ +void frame_rect_to_client(ObFrame *self, Rect *r); + void frame_flash_start(ObFrame *self); void frame_flash_stop(ObFrame *self);