show and hide the new left/right resize bars at the right time
This commit is contained in:
parent
1efc5111ec
commit
05d93485b7
1 changed files with 22 additions and 18 deletions
|
@ -398,35 +398,17 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
XMoveWindow(ob_display, self->trrresize,
|
XMoveWindow(ob_display, self->trrresize,
|
||||||
self->width - ob_rr_theme->paddingx - 1, 0);
|
self->width - ob_rr_theme->paddingx - 1, 0);
|
||||||
|
|
||||||
XMoveResizeWindow(ob_display, self->leftresize,
|
|
||||||
-(ob_rr_theme->fbwidth * 2) - 1,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
self->client->area.height +
|
|
||||||
self->cbwidth_y * 2);
|
|
||||||
XMoveResizeWindow(ob_display, self->rightresize,
|
|
||||||
self->client->area.width +
|
|
||||||
self->cbwidth_x * 2,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
self->client->area.height +
|
|
||||||
self->cbwidth_y * 2);
|
|
||||||
|
|
||||||
XMapWindow(ob_display, self->topresize);
|
XMapWindow(ob_display, self->topresize);
|
||||||
XMapWindow(ob_display, self->tltresize);
|
XMapWindow(ob_display, self->tltresize);
|
||||||
XMapWindow(ob_display, self->tllresize);
|
XMapWindow(ob_display, self->tllresize);
|
||||||
XMapWindow(ob_display, self->trtresize);
|
XMapWindow(ob_display, self->trtresize);
|
||||||
XMapWindow(ob_display, self->trrresize);
|
XMapWindow(ob_display, self->trrresize);
|
||||||
XMapWindow(ob_display, self->leftresize);
|
|
||||||
XMapWindow(ob_display, self->rightresize);
|
|
||||||
} else {
|
} else {
|
||||||
XUnmapWindow(ob_display, self->topresize);
|
XUnmapWindow(ob_display, self->topresize);
|
||||||
XUnmapWindow(ob_display, self->tltresize);
|
XUnmapWindow(ob_display, self->tltresize);
|
||||||
XUnmapWindow(ob_display, self->tllresize);
|
XUnmapWindow(ob_display, self->tllresize);
|
||||||
XUnmapWindow(ob_display, self->trtresize);
|
XUnmapWindow(ob_display, self->trtresize);
|
||||||
XUnmapWindow(ob_display, self->trrresize);
|
XUnmapWindow(ob_display, self->trrresize);
|
||||||
XUnmapWindow(ob_display, self->leftresize);
|
|
||||||
XUnmapWindow(ob_display, self->rightresize);
|
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
XUnmapWindow(ob_display, self->title);
|
XUnmapWindow(ob_display, self->title);
|
||||||
|
@ -466,6 +448,28 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
} else
|
} else
|
||||||
XUnmapWindow(ob_display, self->handle);
|
XUnmapWindow(ob_display, self->handle);
|
||||||
|
|
||||||
|
if (self->decorations & OB_FRAME_DECOR_GRIPS) {
|
||||||
|
XMoveResizeWindow(ob_display, self->leftresize,
|
||||||
|
-(ob_rr_theme->fbwidth * 2) - 1,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
self->client->area.height +
|
||||||
|
self->cbwidth_y * 2);
|
||||||
|
XMoveResizeWindow(ob_display, self->rightresize,
|
||||||
|
self->client->area.width +
|
||||||
|
self->cbwidth_x * 2,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
self->client->area.height +
|
||||||
|
self->cbwidth_y * 2);
|
||||||
|
|
||||||
|
XMapWindow(ob_display, self->leftresize);
|
||||||
|
XMapWindow(ob_display, self->rightresize);
|
||||||
|
} else {
|
||||||
|
XUnmapWindow(ob_display, self->leftresize);
|
||||||
|
XUnmapWindow(ob_display, self->rightresize);
|
||||||
|
}
|
||||||
|
|
||||||
/* move and resize the inner border window which contains the plate
|
/* move and resize the inner border window which contains the plate
|
||||||
*/
|
*/
|
||||||
XMoveResizeWindow(ob_display, self->inner,
|
XMoveResizeWindow(ob_display, self->inner,
|
||||||
|
|
Loading…
Reference in a new issue