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
offscreen client appearance fixes
main
arg@mmvi
18 years ago
parent
8e37c78ce3
commit
28aba061ec
1 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
client.c
+ 10
- 0
client.c
View File
@ -281,6 +281,16 @@ resize(Client *c, Bool sizehints, Corner sticky) {
if
(
sticky
=
=
BotLeft
|
|
sticky
=
=
BotRight
)
c
-
>
y
=
bottom
-
c
-
>
h
;
/* offscreen appearance fixes */
if
(
c
-
>
x
+
c
-
>
w
<
0
)
c
-
>
x
=
0
;
if
(
c
-
>
y
+
c
-
>
h
<
bh
)
c
-
>
y
=
bh
;
if
(
c
-
>
x
>
sw
)
c
-
>
x
=
sw
-
c
-
>
w
;
if
(
c
-
>
y
>
sh
)
c
-
>
y
=
sh
-
c
-
>
h
;
resizetitle
(
c
)
;
wc
.
x
=
c
-
>
x
;
wc
.
y
=
c
-
>
y
;
Write
Preview
Loading…
Cancel
Save