changeset: 2030:a9798d613f63
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Mar 24 08:10:41 2007 -0400
summary: Fix Left/Right bar click events.
diff -r 89d6107960cc -r a9798d613f63 event.c
--- a/event.c Fri Mar 23 12:49:42 2007 -0400
+++ b/event.c Sat Mar 24 08:10:41 2007 -0400
@@ -33,12 +33,12 @@ buttonrelease(XEvent *e) {
ev = &e->xbutton;
if(ev->window == screen->barwin) {
- for(b=screen->bar[BarRight]; b; b=b->next)
+ for(b=screen->bar[BarLeft]; b; b=b->next)
if(ptinrect(ev->x, ev->y, &b->brush.rect)) {
write_event("LeftBarClick %d %s\n", ev->button, b->name);
return;
}
- for(b=screen->bar[BarLeft]; b; b=b->next)
+ for(b=screen->bar[BarRight]; b; b=b->next)
if(ptinrect(ev->x, ev->y, &b->brush.rect)) {
write_event("RightBarClick %d %s\n", ev->button, b->name);
return;
diff -r 89d6107960cc -r a9798d613f63 main.c
--- a/main.c Fri Mar 23 12:49:42 2007 -0400
+++ b/main.c Sat Mar 24 08:10:41 2007 -0400
@@ -146,7 +146,6 @@ init_ns() {
if(address && strncmp(address, "unix!", 5) == 0) {
ns_path = estrdup(&address[5]);
-
p = strrchr(ns_path, '/');
if(p != nil)
p = '\0';
Received on Sat Mar 24 2007 - 13:15:31 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:23 UTC