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
monocle goes mainstream
[dwm.git]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
897eeb4
..
b417167
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-153,6
+153,7
@@
void killclient(const char *arg);
void manage(Window w, XWindowAttributes *wa);
void mappingnotify(XEvent *e);
void maprequest(XEvent *e);
void manage(Window w, XWindowAttributes *wa);
void mappingnotify(XEvent *e);
void maprequest(XEvent *e);
+void monocle(void);
void movemouse(Client *c);
Client *nexttiled(Client *c);
void propertynotify(XEvent *e);
void movemouse(Client *c);
Client *nexttiled(Client *c);
void propertynotify(XEvent *e);
@@
-1072,6
+1073,16
@@
maprequest(XEvent *e) {
}
void
}
void
+monocle(void) {
+ Client *c;
+
+ domwfact = dozoom = False;
+ for(c = clients; c; c = c->next)
+ if(isvisible(c))
+ resize(c, wax, way, waw - 2 * c->border, wah - 2 * c->border, RESIZEHINTS);
+}
+
+void
movemouse(Client *c) {
int x1, y1, ocx, ocy, di, nx, ny;
unsigned int dui;
movemouse(Client *c) {
int x1, y1, ocx, ocy, di, nx, ny;
unsigned int dui;
@@
-1412,7
+1423,7
@@
setlayout(const char *arg) {
}
else {
for(i = 0; i < LENGTH(layouts); i++)
}
else {
for(i = 0; i < LENGTH(layouts); i++)
- if(arg == layouts[i].symbol)
+ if(!strcmp(arg, layouts[i].symbol))
break;
if(i == LENGTH(layouts))
return;
break;
if(i == LENGTH(layouts))
return;