mirror of
https://github.com/morgant/mlvwm.git
synced 2025-07-19 03:24:21 +00:00
@@ -246,21 +246,21 @@ void SetUpFrame( MlvwmWindow *t, int x, int y, int w, int h, Bool sendEvent )
|
|||||||
if( (!(t->wShaped) || t->flags&SHADE) &&
|
if( (!(t->wShaped) || t->flags&SHADE) &&
|
||||||
t->flags & ( TITLE | SBARV | SBARH | RESIZER )){
|
t->flags & ( TITLE | SBARV | SBARH | RESIZER )){
|
||||||
int lp;
|
int lp;
|
||||||
XRectangle rect[7];
|
XRectangle rect[5];
|
||||||
|
|
||||||
rect[0].x = -1; rect[0].y = -1;
|
rect[0].x = -1; rect[0].y = -1;
|
||||||
rect[0].width = t->frame_w-1; rect[0].height = t->frame_h-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].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++ ){
|
for( lp=0; lp<2; lp++ ){
|
||||||
rect[lp+4].x = lp; rect[lp+4].y = t->frame_h-2+lp;
|
rect[lp+3].x = lp; rect[lp+3].y = t->frame_h-2+lp;
|
||||||
rect[lp+4].width = t->frame_w+1-lp; rect[lp+4].height = 1;
|
rect[lp+3].width = t->frame_w-lp; rect[lp+3].height = 1;
|
||||||
}
|
}
|
||||||
XShapeCombineRectangles(dpy,t->frame,ShapeBounding,
|
XShapeCombineRectangles(dpy,t->frame,ShapeBounding,
|
||||||
0,0,rect,7,ShapeSet,YSorted);
|
0,0,rect,5,ShapeSet,YSorted);
|
||||||
}
|
}
|
||||||
if( t->wShaped ) SetShape( t, w );
|
if( t->wShaped ) SetShape( t, w );
|
||||||
if (sendEvent && !(t->flags&SHADE) ){
|
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,
|
XMoveResizeWindow( dpy, m->PullWin, m->MenuX, m->MenuY,
|
||||||
m->MenuWidth+2, m->MenuHeight+2 );
|
m->MenuWidth+2, m->MenuHeight+2 );
|
||||||
{
|
{
|
||||||
XRectangle rect[7];
|
XRectangle rect[5];
|
||||||
int point=0;
|
int point=0;
|
||||||
|
|
||||||
rect[point].x = -1; rect[point].y = -1;
|
rect[point].x = -1; rect[point].y = -1;
|
||||||
rect[point].width = m->MenuWidth+1;
|
rect[point].width = m->MenuWidth+1;
|
||||||
rect[point].height = m->MenuHeight+1;
|
rect[point].height = m->MenuHeight+1;
|
||||||
point++;
|
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].x = m->MenuWidth+lp-1; rect[point].y = lp-1;
|
||||||
rect[point].width = 1; rect[point].height = m->MenuHeight+2-lp+1;
|
rect[point].width = 1; rect[point].height = m->MenuHeight+2-lp+1;
|
||||||
point++;
|
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].x = lp-1; rect[point].y = m->MenuHeight+lp-1;
|
||||||
rect[point].width = m->MenuWidth+2-lp+1; rect[point].height = 1;
|
rect[point].width = m->MenuWidth+2-lp+1; rect[point].height = 1;
|
||||||
point++;
|
point++;
|
||||||
|
Reference in New Issue
Block a user