Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
added heretag command which allows to tag a client of a foreign tag with current tag
[dwm.git]
/
draw.c
diff --git
a/draw.c
b/draw.c
index
1c6613f
..
de4bdb0
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-8,7
+8,7
@@
#include <string.h>
#include <X11/Xlocale.h>
#include <string.h>
#include <X11/Xlocale.h>
-/* static
functions
*/
+/* static */
static void
drawborder(void)
static void
drawborder(void)
@@
-90,14
+90,14
@@
drawtext(const char *text, Bool invert, Bool border)
}
}
}
}
-/* extern
functions
*/
+/* extern */
void
drawall()
{
Client *c;
void
drawall()
{
Client *c;
- for(c = clients; c; c = getnext(c->next))
+ for(c = clients; c; c = getnext(c->next
, tsel
))
drawtitle(c);
drawstatus();
}
drawtitle(c);
drawstatus();
}
@@
-131,7
+131,7
@@
drawstatus()
drawtext(stext, !istile, False);
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
drawtext(stext, !istile, False);
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
- X
Flush(dpy
);
+ X
Sync(dpy, False
);
}
void
}
void
@@
-163,9
+163,8
@@
drawtitle(Client *c)
dc.x += dc.w;
dc.w = textw(c->name);
drawtext(c->name, !istile, True);
dc.x += dc.w;
dc.w = textw(c->name);
drawtext(c->name, !istile, True);
- XCopyArea(dpy, dc.drawable, c->title, dc.gc,
- 0, 0, c->tw, c->th, 0, 0);
- XFlush(dpy);
+ XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
+ XSync(dpy, False);
}
unsigned long
}
unsigned long