Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
focus on view change as well
[dwm.git]
/
bar.c
diff --git
a/bar.c
b/bar.c
index
9914e56
..
ea4b946
100644
(file)
--- a/
bar.c
+++ b/
bar.c
@@
-6,6
+6,20
@@
#include "dwm.h"
void
+barclick(XButtonPressedEvent *e)
+{
+ int x = 0;
+ Arg a;
+ for(a.i = 0; a.i < TLast; a.i++) {
+ x += textw(tags[a.i]) + dc.font.height;
+ if(e->x < x) {
+ view(&a);
+ return;
+ }
+ }
+}
+
+void
draw_bar()
{
int i;