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
Button3 click on mode label toggles stack position now
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
76f3602
..
a17034c
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-126,6
+126,8
@@
buttonpress(XEvent *e) {
if(ev->x < x + bmw) {
if(ev->button == Button1)
togglemode(NULL);
if(ev->x < x + bmw) {
if(ev->button == Button1)
togglemode(NULL);
+ else if(ev->button == Button3)
+ togglestackpos(NULL);
}
}
else if((c = getclient(ev->window))) {
}
}
else if((c = getclient(ev->window))) {
@@
-176,8
+178,11
@@
configurerequest(XEvent *e) {
else
configure(c);
XSync(dpy, False);
else
configure(c);
XSync(dpy, False);
- if(c->isfloat)
+ if(c->isfloat) {
resize(c, False, TopLeft);
resize(c, False, TopLeft);
+ if(!isvisible(c))
+ ban(c);
+ }
else
arrange(NULL);
}
else
arrange(NULL);
}
@@
-316,6
+321,7
@@
propertynotify(XEvent *e) {
}
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
updatetitle(c);
}
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
updatetitle(c);
+ resizetitle(c);
drawtitle(c);
}
}
drawtitle(c);
}
}