From 882e556d35f49bf91d544b55395aabd4e100b4e3 Mon Sep 17 00:00:00 2001 From: TheMorc Date: Sun, 7 Mar 2021 11:16:42 +0100 Subject: [PATCH] Add_Window&Borders: Move placement of titlebar buttons These changes don't seem to break the System7 theme at all. --- mlvwm/add_window.c | 2 +- mlvwm/borders.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mlvwm/add_window.c b/mlvwm/add_window.c index 1b398d9..ae07219 100644 --- a/mlvwm/add_window.c +++ b/mlvwm/add_window.c @@ -204,7 +204,7 @@ void create_titlebar( MlvwmWindow *tmp_win ) if( tmp_win->flags&CLOSER ){ attributes.cursor = Scr.MlvwmCursors[DESTROY]; tmp_win->close_b = XCreateWindow( dpy, tmp_win->title_w, - Scr.flags&SYSTEM8?4:BOXSIZE+1, + Scr.flags&SYSTEM8?2:BOXSIZE+1, (TITLE_HEIGHT-BOXSIZE)/2, BOXSIZE, BOXSIZE, 0, CopyFromParent, InputOutput, diff --git a/mlvwm/borders.c b/mlvwm/borders.c index 44c5c99..16484c7 100644 --- a/mlvwm/borders.c +++ b/mlvwm/borders.c @@ -55,13 +55,13 @@ void DrawShadowBox( int x, int y, int w, int h, Window win, int d, GC hilight, G h--; for( lp=0; lpflags&MINMAXR ){ if( Scr.flags&SYSTEM8 ) XMoveWindow(dpy, t->minmax_b, - w-BOXSIZE-9-(t->flags&SHADER?BOXSIZE+4:0), + w-BOXSIZE-7-(t->flags&SHADER?BOXSIZE+4:0), (TITLE_HEIGHT-BOXSIZE)/2); else XMoveWindow(dpy, t->minmax_b, @@ -137,7 +137,7 @@ void SetUpFrame( MlvwmWindow *t, int x, int y, int w, int h, Bool sendEvent ) (TITLE_HEIGHT-BOXSIZE)/2); } if( t->flags&SHADER ) - XMoveWindow(dpy, t->shade_b, w-BOXSIZE-9, + XMoveWindow(dpy, t->shade_b, w-BOXSIZE-8, (TITLE_HEIGHT-BOXSIZE)/2); if( !(t->flags&SHADE) ){ if( t->flags & ( TITLE | SBARV | SBARH | RESIZER ) ){