symmetry..tho it's not used right now
This commit is contained in:
parent
80120d0487
commit
bfb0c91671
2 changed files with 11 additions and 0 deletions
|
@ -1539,6 +1539,13 @@ void frame_rect_to_frame(ObFrame *self, Rect *r)
|
||||||
frame_client_gravity(self, &r->x, &r->y);
|
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)
|
static void flash_done(gpointer data)
|
||||||
{
|
{
|
||||||
ObFrame *self = data;
|
ObFrame *self = data;
|
||||||
|
|
|
@ -237,6 +237,10 @@ void frame_frame_gravity(ObFrame *self, gint *x, gint *y);
|
||||||
for the frame, given its current decorations sizes */
|
for the frame, given its current decorations sizes */
|
||||||
void frame_rect_to_frame(ObFrame *self, Rect *r);
|
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_start(ObFrame *self);
|
||||||
void frame_flash_stop(ObFrame *self);
|
void frame_flash_stop(ObFrame *self);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue