From 54f7bca6e343ce57117811e13879dfa382329778 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Tue, 30 Jul 2024 17:57:50 +0200 Subject: [PATCH] changed variable name --- config.h | 2 +- dwm.c | 10 +++++----- dwm.o | Bin 55904 -> 55904 bytes 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config.h b/config.h index 6184cef..13d5abe 100644 --- a/config.h +++ b/config.h @@ -3,7 +3,7 @@ /* appearance */ static const unsigned int borderpx = 6; /* border pixel of windows */ static const unsigned int gappx = 6; -static const unsigned int CORNER_RADIUS = 24; +static const unsigned int cornerrad = 20; static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ diff --git a/dwm.c b/dwm.c index fbe8484..afb2239 100644 --- a/dwm.c +++ b/dwm.c @@ -1311,11 +1311,11 @@ resizeclient(Client *c, int x, int y, int w, int h) void drawroundedcorners(Client *c) { // if set to zero in config.h, do not attempt to round - if(CORNER_RADIUS < 0) return; + if(cornerrad < 0) return; // NOTE: this is extremely hacky and surely could be optimized. // Any X wizards out there reading this, please pull request. - if (CORNER_RADIUS > 0 && c && !c->isfullscreen) { + if (cornerrad > 0 && c && !c->isfullscreen) { Window win; win = c->win; if(!win) return; @@ -1324,7 +1324,7 @@ void drawroundedcorners(Client *c) { if(!XGetWindowAttributes(dpy, win, &win_attr)) return; // set in config.h: - int dia = 2 * CORNER_RADIUS; + int dia = 2 * cornerrad; int w = c->w; int h = c->h; if(w < dia || h < dia) return; @@ -1350,8 +1350,8 @@ void drawroundedcorners(Client *c) { XFillArc(dpy, mask, shape_gc, w-dia-1, 0, dia, dia, 0, 23040); XFillArc(dpy, mask, shape_gc, 0, h-dia-1, dia, dia, 0, 23040); XFillArc(dpy, mask, shape_gc, w-dia-1, h-dia-1, dia, dia, 0, 23040); - XFillRectangle(dpy, mask, shape_gc, CORNER_RADIUS, 0, w-dia, h); - XFillRectangle(dpy, mask, shape_gc, 0, CORNER_RADIUS, w, h-dia); + XFillRectangle(dpy, mask, shape_gc, cornerrad, 0, w-dia, h); + XFillRectangle(dpy, mask, shape_gc, 0, cornerrad, w, h-dia); XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, mask, ShapeSet); XFreePixmap(dpy, mask); XFreeGC(dpy, shape_gc); diff --git a/dwm.o b/dwm.o index c5aae3f0a1fc7876a511aa6ee368abe6db50be1d..b1ef4b4edcafcb1c9d917e91d5f28381ff7b9455 100644 GIT binary patch delta 207 zcmaE`h55l2<_-Pk-0J*&HyIfi9Gm~BPo8Byl~H4|frWgc#tQ}@aO`!x?rM0zqw`g# zi;99r^AQQhof<%KkIs7;3{gP3+ZLoOiy=#++ebwKtOumZwbw=Ey5UJ=H9#|fy0RD` z24rbW-e95R0x}Dv*`?b>1>FSS8$g>KL!eebwC@xFYH)0R196>e=S#;OBAdl5y%quh DuGm1U delta 207 zcmaE`h55l2<_-Pk-1_`|HyIfi9Gm~>Po8BymC<0bfrWgc!3zc;aO`zG?`n9!qw`g# zi;99r^AQQhod!U0kIs7;3{gP3+ZLoOiy_OP+ebwKtOumZwbw=Eyx~b?H9#|fy0RD` z24opb-e95R0x}Dv*`?b>MFY(Q-wQyS9Ydg2K(z0a0BUe-egkoxYv)VH9TJ