This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
dwm
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
applied anudots [un]ban repair patch
master
Anselm R. Garbe
18 years ago
parent
b3419f49a3
commit
5a1a2edf0e
3 changed files
with
3 additions
and
7 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
client.c
+1
-3
layout.c
+1
-2
main.c
+ 1
- 2
client.c
View File
@ -216,8 +216,7 @@ manage(Window w, XWindowAttributes *wa) {
c
-
>
isfloating
=
(
rettrans
=
=
Success
)
|
|
c
-
>
isfixed
;
c
-
>
isfloating
=
(
rettrans
=
=
Success
)
|
|
c
-
>
isfixed
;
attach
(
c
)
;
attach
(
c
)
;
attachstack
(
c
)
;
attachstack
(
c
)
;
c
-
>
isbanned
=
True
;
XMoveWindow
(
dpy
,
w
,
c
-
>
x
+
2
*
sw
,
c
-
>
y
)
;
ban
(
c
)
;
XMapWindow
(
dpy
,
w
)
;
XMapWindow
(
dpy
,
w
)
;
setclientstate
(
c
,
NormalState
)
;
setclientstate
(
c
,
NormalState
)
;
focus
(
c
)
;
focus
(
c
)
;
+ 1
- 3
layout.c
View File
@ -88,9 +88,7 @@ floating(void) {
for
(
c
=
clients
;
c
;
c
=
c
-
>
next
)
for
(
c
=
clients
;
c
;
c
=
c
-
>
next
)
if
(
isvisible
(
c
)
)
{
if
(
isvisible
(
c
)
)
{
if
(
c
-
>
isbanned
)
XMoveWindow
(
dpy
,
c
-
>
win
,
c
-
>
x
,
c
-
>
y
)
;
c
-
>
isbanned
=
False
;
unban
(
c
)
;
resize
(
c
,
c
-
>
x
,
c
-
>
y
,
c
-
>
w
,
c
-
>
h
,
True
)
;
resize
(
c
,
c
-
>
x
,
c
-
>
y
,
c
-
>
w
,
c
-
>
h
,
True
)
;
}
}
else
else
+ 1
- 2
main.c
View File
@ -38,8 +38,7 @@ static void
cleanup
(
void
)
{
cleanup
(
void
)
{
close
(
STDIN_FILENO
)
;
close
(
STDIN_FILENO
)
;
while
(
stack
)
{
while
(
stack
)
{
if
(
stack
-
>
isbanned
)
XMoveWindow
(
dpy
,
stack
-
>
win
,
stack
-
>
x
,
stack
-
>
y
)
;
unban
(
stack
)
;
unmanage
(
stack
)
;
unmanage
(
stack
)
;
}
}
if
(
dc
.
font
.
set
)
if
(
dc
.
font
.
set
)
Write
Preview
Loading…
Cancel
Save