Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba96131
)
fixed some issues due to the Arg->const char * transition
author
Anselm R. Garbe
<arg@suckless.org>
Thu, 22 Feb 2007 11:00:02 +0000
(12:00 +0100)
committer
Anselm R. Garbe
<arg@suckless.org>
Thu, 22 Feb 2007 11:00:02 +0000
(12:00 +0100)
event.c
patch
|
blob
|
history
layout.c
patch
|
blob
|
history
diff --git
a/event.c
b/event.c
index
ae08f86
..
acf1b01
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-113,29
+113,29
@@
resizemouse(Client *c) {
static void
buttonpress(XEvent *e) {
static void
buttonpress(XEvent *e) {
- static char arg[8];
- int i, x;
+ static char buf[32];
+ unsigned int i, x;
Client *c;
XButtonPressedEvent *ev = &e->xbutton;
Client *c;
XButtonPressedEvent *ev = &e->xbutton;
- arg[0] = 0;
+ buf[0] = 0;
if(barwin == ev->window) {
x = 0;
for(i = 0; i < ntags; i++) {
x += textw(tags[i]);
if(ev->x < x) {
if(barwin == ev->window) {
x = 0;
for(i = 0; i < ntags; i++) {
x += textw(tags[i]);
if(ev->x < x) {
- snprintf(arg, sizeof arg, "%d", i);
+ snprintf(buf, sizeof buf, "%d", i);
if(ev->button == Button1) {
if(ev->state & MODKEY)
if(ev->button == Button1) {
if(ev->state & MODKEY)
- tag(arg);
+ tag(buf);
else
else
- view(arg);
+ view(buf);
}
else if(ev->button == Button3) {
if(ev->state & MODKEY)
}
else if(ev->button == Button3) {
if(ev->state & MODKEY)
- toggletag(arg);
+ toggletag(buf);
else
else
- toggleview(arg);
+ toggleview(buf);
}
return;
}
}
return;
}
@@
-143,7
+143,7
@@
buttonpress(XEvent *e) {
if(ev->x < x + blw)
switch(ev->button) {
case Button1:
if(ev->x < x + blw)
switch(ev->button) {
case Button1:
- setlayout("-1");
+ setlayout(NULL);
break;
}
}
break;
}
}
diff --git
a/layout.c
b/layout.c
index
8b4c940
..
21ee99c
100644
(file)
--- a/
layout.c
+++ b/
layout.c
@@
-2,6
+2,7
@@
* See LICENSE file for license details.
*/
#include "dwm.h"
* See LICENSE file for license details.
*/
#include "dwm.h"
+#include <stdlib.h>
unsigned int blw = 0;
Layout *lt = NULL;
unsigned int blw = 0;
Layout *lt = NULL;