mirror of
https://github.com/morgant/mlvwm.git
synced 2024-11-25 05:31:56 +00:00
parent
e822ec57b9
commit
9a32e76a33
@ -246,21 +246,21 @@ void SetUpFrame( MlvwmWindow *t, int x, int y, int w, int h, Bool sendEvent )
|
||||
if( (!(t->wShaped) || t->flags&SHADE) &&
|
||||
t->flags & ( TITLE | SBARV | SBARH | RESIZER )){
|
||||
int lp;
|
||||
XRectangle rect[7];
|
||||
XRectangle rect[5];
|
||||
|
||||
rect[0].x = -1; rect[0].y = -1;
|
||||
rect[0].width = t->frame_w-1; rect[0].height = t->frame_h-1;
|
||||
|
||||
for( lp=0; lp<3; lp++ ){
|
||||
for( lp=0; lp<2; lp++ ){
|
||||
rect[lp+1].x = t->frame_w-2+lp; rect[lp+1].y = lp;
|
||||
rect[lp+1].width = 1; rect[lp+1].height = t->frame_h+1-lp;
|
||||
rect[lp+1].width = 1; rect[lp+1].height = t->frame_h-lp;
|
||||
}
|
||||
for( lp=0; lp<3; lp++ ){
|
||||
rect[lp+4].x = lp; rect[lp+4].y = t->frame_h-2+lp;
|
||||
rect[lp+4].width = t->frame_w+1-lp; rect[lp+4].height = 1;
|
||||
for( lp=0; lp<2; lp++ ){
|
||||
rect[lp+3].x = lp; rect[lp+3].y = t->frame_h-2+lp;
|
||||
rect[lp+3].width = t->frame_w-lp; rect[lp+3].height = 1;
|
||||
}
|
||||
XShapeCombineRectangles(dpy,t->frame,ShapeBounding,
|
||||
0,0,rect,7,ShapeSet,YSorted);
|
||||
0,0,rect,5,ShapeSet,YSorted);
|
||||
}
|
||||
if( t->wShaped ) SetShape( t, w );
|
||||
if (sendEvent && !(t->flags&SHADE) ){
|
||||
|
@ -416,19 +416,19 @@ Bool MapMenu( MenuLabel *m, int left, int right, int y, Bool side )
|
||||
XMoveResizeWindow( dpy, m->PullWin, m->MenuX, m->MenuY,
|
||||
m->MenuWidth+2, m->MenuHeight+2 );
|
||||
{
|
||||
XRectangle rect[7];
|
||||
XRectangle rect[5];
|
||||
int point=0;
|
||||
|
||||
rect[point].x = -1; rect[point].y = -1;
|
||||
rect[point].width = m->MenuWidth+1;
|
||||
rect[point].height = m->MenuHeight+1;
|
||||
point++;
|
||||
for( lp=1; lp<4; lp++ ){
|
||||
for( lp=1; lp<3; lp++ ){
|
||||
rect[point].x = m->MenuWidth+lp-1; rect[point].y = lp-1;
|
||||
rect[point].width = 1; rect[point].height = m->MenuHeight+2-lp+1;
|
||||
point++;
|
||||
}
|
||||
for( lp=1; lp<4; lp++ ){
|
||||
for( lp=1; lp<3; lp++ ){
|
||||
rect[point].x = lp-1; rect[point].y = m->MenuHeight+lp-1;
|
||||
rect[point].width = m->MenuWidth+2-lp+1; rect[point].height = 1;
|
||||
point++;
|
||||
|
Loading…
Reference in New Issue
Block a user