Borders&Event: Fix rectangle size on MinMax button

This commit is contained in:
TheMorc 2021-03-07 10:58:19 +01:00
parent 4cd1d76fe1
commit 0a3517159f
2 changed files with 3 additions and 3 deletions

View File

@ -382,7 +382,7 @@ void DrawMinMax( MlvwmWindow *t, Bool on )
BOXSIZE+8, BOXSIZE+2 ); BOXSIZE+8, BOXSIZE+2 );
FillGradation( t->minmax_b ); FillGradation( t->minmax_b );
XDrawRectangle( dpy, t->minmax_b, Scr.BlackGC, XDrawRectangle( dpy, t->minmax_b, Scr.BlackGC,
1, 1, BOXSIZE-6, BOXSIZE-6 ); 1, 1, BOXSIZE-7, BOXSIZE-7 );
} }
else{ else{
XFillRectangle( dpy, t->title_w, Scr.Gray4GC, XFillRectangle( dpy, t->title_w, Scr.Gray4GC,

View File

@ -969,7 +969,7 @@ void MinMaxWindow( MlvwmWindow *mw, XEvent *evp )
DisplayPush( mw->minmax_b ); DisplayPush( mw->minmax_b );
XDrawRectangle( dpy, mw->minmax_b, Scr.BlackGC, XDrawRectangle( dpy, mw->minmax_b, Scr.BlackGC,
1, 1, BOXSIZE-6, BOXSIZE-6 ); 1, 1, BOXSIZE-7, BOXSIZE-7 );
while( !isEnd ){ while( !isEnd ){
XMaskEvent( dpy, XMaskEvent( dpy,
ButtonReleaseMask|EnterWindowMask|LeaveWindowMask, &ev ); ButtonReleaseMask|EnterWindowMask|LeaveWindowMask, &ev );
@ -983,7 +983,7 @@ void MinMaxWindow( MlvwmWindow *mw, XEvent *evp )
if( ev.xcrossing.window==mw->minmax_b ){ if( ev.xcrossing.window==mw->minmax_b ){
DisplayPush( mw->minmax_b ); DisplayPush( mw->minmax_b );
XDrawRectangle( dpy, mw->minmax_b, Scr.BlackGC, XDrawRectangle( dpy, mw->minmax_b, Scr.BlackGC,
1, 1, BOXSIZE-6, BOXSIZE-6 ); 1, 1, BOXSIZE-6, BOXSIZE-6 );
isIn = True; isIn = True;
} }
break; break;