mirror of
https://github.com/morgant/mlvwm.git
synced 2024-11-29 16:49:30 +00:00
Borders&Event: Fix rectangle size on MinMax button
This commit is contained in:
parent
4cd1d76fe1
commit
0a3517159f
@ -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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user