Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
244addb3f4 | |||
c13be8d620 | |||
dc39ae8568 | |||
966d76a428 | |||
7151bf8329 | |||
dfecd46190 | |||
5bc4db0f76 | |||
999d6e795f | |||
636075297c | |||
6877a00033 | |||
0927d635bc |
1
.hgtags
1
.hgtags
@ -61,3 +61,4 @@ e4bcaca8e6ef13d2c3b81f1218ad15e5da4d68bd 5.2
|
||||
8b7836a471f8f9ee61bec980df00971888d76343 5.4
|
||||
85a78d8afa0fe8b106a8223b5327e5bddb5dd5e3 5.4.1
|
||||
deaa276abac17ca08fbeb936916e4c8292d293a4 5.5
|
||||
5550702215773aad462f22a774dced9b87437c51 5.6
|
||||
|
@ -1,5 +1,5 @@
|
||||
# dwm version
|
||||
VERSION = 5.6
|
||||
VERSION = 5.6.1
|
||||
|
||||
# Customize below to fit your system
|
||||
|
||||
|
26
dwm.1
26
dwm.1
@ -37,8 +37,10 @@ prints version information to standard output, then exits.
|
||||
.SH USAGE
|
||||
.SS Status bar
|
||||
.TP
|
||||
.B Standard input
|
||||
is read and displayed in the status text area.
|
||||
.B X root window name
|
||||
is read and displayed in the status text area. It can be set with the
|
||||
.BR xsetroot (1)
|
||||
command.
|
||||
.TP
|
||||
.B Button1
|
||||
click on a tag label to display all windows with that tag, click on the layout
|
||||
@ -56,7 +58,7 @@ click on a tag label adds/removes that tag to/from the focused window.
|
||||
.TP
|
||||
.B Mod1\-Shift\-Return
|
||||
Start
|
||||
.BR xterm.
|
||||
.BR uxterm (1).
|
||||
.TP
|
||||
.B Mod1\-,
|
||||
Focus previous screen, if any.
|
||||
@ -67,7 +69,7 @@ Focus next screen, if any.
|
||||
.B Mod1\-Shift\-,
|
||||
Send focused window to previous screen, if any.
|
||||
.TP
|
||||
.B Mod1\-Shift\-,
|
||||
.B Mod1\-Shift\-.
|
||||
Send focused window to next screen, if any.
|
||||
.TP
|
||||
.B Mod1\-b
|
||||
@ -110,30 +112,22 @@ Toggle focused window between tiled and floating state.
|
||||
Toggles to the previously selected tags.
|
||||
.TP
|
||||
.B Mod1\-Shift\-[1..n]
|
||||
Apply
|
||||
.RB nth
|
||||
tag to focused window.
|
||||
Apply nth tag to focused window.
|
||||
.TP
|
||||
.B Mod1\-Shift\-0
|
||||
Apply all tags to focused window.
|
||||
.TP
|
||||
.B Mod1\-Control\-Shift\-[1..n]
|
||||
Add/remove
|
||||
.B nth
|
||||
tag to/from focused window.
|
||||
Add/remove nth tag to/from focused window.
|
||||
.TP
|
||||
.B Mod1\-[1..n]
|
||||
View all windows with
|
||||
.BR nth
|
||||
tag.
|
||||
View all windows with nth tag.
|
||||
.TP
|
||||
.B Mod1\-0
|
||||
View all windows with any tag.
|
||||
.TP
|
||||
.B Mod1\-Control\-[1..n]
|
||||
Add/remove all windows with
|
||||
.BR nth
|
||||
tag to/from the view.
|
||||
Add/remove all windows with nth tag to/from the view.
|
||||
.TP
|
||||
.B Mod1\-Shift\-q
|
||||
Quit dwm.
|
||||
|
15
dwm.c
15
dwm.c
@ -350,9 +350,9 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) {
|
||||
/* adjust for aspect limits */
|
||||
if(c->mina > 0 && c->maxa > 0) {
|
||||
if(c->maxa < (float)*w / *h)
|
||||
*w = *h * c->maxa;
|
||||
*w = *h * c->maxa + 0.5;
|
||||
else if(c->mina < (float)*h / *w)
|
||||
*h = *w * c->mina;
|
||||
*h = *w * c->mina + 0.5;
|
||||
}
|
||||
if(baseismin) { /* increment calculation requires this */
|
||||
*w -= c->basew;
|
||||
@ -1683,7 +1683,7 @@ updatebarpos(Monitor *m) {
|
||||
|
||||
void
|
||||
updategeom(void) {
|
||||
int i, n = 1;
|
||||
int i, n = 1, nn;
|
||||
Client *c;
|
||||
Monitor *newmons = NULL, *m = NULL, *tm;
|
||||
|
||||
@ -1692,6 +1692,11 @@ updategeom(void) {
|
||||
|
||||
if(XineramaIsActive(dpy))
|
||||
info = XineramaQueryScreens(dpy, &n);
|
||||
for(i = 1, nn = n; i < n; i++)
|
||||
if(info[i - 1].x_org == info[i].x_org && info[i - 1].y_org == info[i].y_org
|
||||
&& info[i - 1].width == info[i].width && info[i - 1].height == info[i].height)
|
||||
--nn;
|
||||
n = nn; /* we only consider unique geometries as separate screens */
|
||||
#endif /* XINERAMA */
|
||||
/* allocate monitor(s) for the new geometry setup */
|
||||
for(i = 0; i < n; i++) {
|
||||
@ -1807,8 +1812,8 @@ updatesizehints(Client *c) {
|
||||
else
|
||||
c->minw = c->minh = 0;
|
||||
if(size.flags & PAspect) {
|
||||
c->mina = (float)size.min_aspect.y / (float)size.min_aspect.x;
|
||||
c->maxa = (float)size.max_aspect.x / (float)size.max_aspect.y;
|
||||
c->mina = (float)size.min_aspect.y / size.min_aspect.x;
|
||||
c->maxa = (float)size.max_aspect.x / size.max_aspect.y;
|
||||
}
|
||||
else
|
||||
c->maxa = c->mina = 0.0;
|
||||
|
Reference in New Issue
Block a user