This website works better with JavaScript.
Home
Explore
Help
Sign In
gmarx
/
dwm-macbookair
mirror of
https://github.com/gmarxcc/dwm-macbookair
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
tiled layout resizehints should be respected by default
main
Anselm R Garbe
16 years ago
parent
5a92420fce
commit
f25cc5678f
2 changed files
with
5 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
config.def.h
+3
-3
dwm.c
+ 2
- 2
config.def.h
View File
@ -27,8 +27,8 @@ static Rule rules[] = {
}
;
/* layout(s) */
static
float
mfact
=
0.55
;
static
Bool
resizehints
=
False
;
/* False means respect size hints in tiled resizals */
static
float
mfact
=
0.55
;
static
Bool
resizehints
=
True
;
/* False means respect size hints in tiled resizals */
static
Layout
layouts
[
]
=
{
/* symbol arrange function */
+ 3
- 3
dwm.c
View File
@ -1094,11 +1094,11 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
w
=
MAX
(
w
,
c
-
>
minw
)
;
h
=
MAX
(
h
,
c
-
>
minh
)
;
if
(
c
-
>
maxw
)
if
(
c
-
>
maxw
)
w
=
MIN
(
w
,
c
-
>
maxw
)
;
if
(
c
-
>
maxh
)
if
(
c
-
>
maxh
)
h
=
MIN
(
h
,
c
-
>
maxh
)
;
}
if
(
w
<
=
0
|
|
h
<
=
0
)
Write
Preview
Loading…
Cancel
Save