This website works better with JavaScript.
Home
Explore
Help
Sign In
Linux
/
dwm
generated from
gmarx/git-template
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
preserving c1->snext and c2->snext in swap() as well.
config
Anselm R. Garbe
18 years ago
parent
51f6405b0d
commit
0b7c0f10ee
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
view.c
+ 4
- 0
view.c
View File
@ -34,15 +34,19 @@ swap(Client *c1, Client *c2) {
Client
tmp
=
*
c1
;
Client
*
c1p
=
c1
-
>
prev
;
Client
*
c1n
=
c1
-
>
next
;
Client
*
c1s
=
c1
-
>
snext
;
Client
*
c2p
=
c2
-
>
prev
;
Client
*
c2n
=
c2
-
>
next
;
Client
*
c2s
=
c2
-
>
snext
;
*
c1
=
*
c2
;
*
c2
=
tmp
;
c1
-
>
prev
=
c1p
;
c1
-
>
next
=
c1n
;
c1
-
>
snext
=
c1s
;
c2
-
>
prev
=
c2p
;
c2
-
>
next
=
c2n
;
c2
-
>
snext
=
c2s
;
}
static
void
Write
Preview
Loading…
Cancel
Save