Introduction
Introduction Statistics Contact Development Disclaimer Help
tremoved bx and bw, unnecessary - dwm - [fork] customized build of dwm, the dyn…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 32c5046635da102dd3b6789462234e3147b190ab
parent 6c8618f5021783d51034113d32655d2676611176
Author: Anselm R Garbe <[email protected]>
Date: Mon, 26 May 2008 10:28:18 +0100
removed bx and bw, unnecessary
Diffstat:
M dwm.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/dwm.c b/dwm.c
t@@ -193,7 +193,7 @@ void zoom(const void *arg);
/* variables */
char stext[256];
int screen, sx, sy, sw, sh;
-int bx, by, bw, bh, blw, wx, wy, ww, wh;
+int by, bh, blw, wx, wy, ww, wh;
uint seltags = 0;
int (*xerrorxlib)(Display *, XErrorEvent *);
uint numlockmask = 0;
t@@ -506,10 +506,10 @@ drawbar(void) {
else
x = dc.x;
dc.w = TEXTW(stext);
- dc.x = bw - dc.w;
+ dc.x = ww - dc.w;
if(dc.x < x) {
dc.x = x;
- dc.w = bw - x;
+ dc.w = ww - x;
}
drawtext(stext, dc.norm, False);
if((dc.w = dc.x - x) > bh) {
t@@ -521,7 +521,7 @@ drawbar(void) {
else
drawtext(NULL, dc.norm, False);
}
- XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
+ XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, ww, bh, 0, 0);
XSync(dpy, False);
}
t@@ -1372,7 +1372,7 @@ setup(void) {
wa.background_pixmap = ParentRelative;
wa.event_mask = ButtonPressMask|ExposureMask;
- barwin = XCreateWindow(dpy, root, bx, by, bw, bh, 0, DefaultDepth(dpy,…
+ barwin = XCreateWindow(dpy, root, wx, by, ww, bh, 0, DefaultDepth(dpy,…
CopyFromParent, DefaultVisual(dpy, screen),
CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
XDefineCursor(dpy, barwin, cursor[CurNormal]);
t@@ -1567,8 +1567,8 @@ void
updatebar(void) {
if(dc.drawable != 0)
XFreePixmap(dpy, dc.drawable);
- dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, scree…
- XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
+ dc.drawable = XCreatePixmap(dpy, root, ww, bh, DefaultDepth(dpy, scree…
+ XMoveResizeWindow(dpy, barwin, wx, by, ww, bh);
}
void
t@@ -1595,10 +1595,8 @@ updategeom(void) {
wh = showbar ? sh - bh : sh;
}
- /* bar geometry */
- bx = wx;
+ /* bar position */
by = showbar ? (topbar ? wy - bh : wy + wh) : -bh;
- bw = ww;
}
void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.