Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ofarges-dwm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FARGES Olivier
ofarges-dwm
Commits
3632d713
Commit
3632d713
authored
16 years ago
by
Anselm R Garbe
Browse files
Options
Downloads
Patches
Plain Diff
applied Marc Andre Tanners showhide patch, the removal of ntiled
parent
56569708
Branches
Branches containing commit
Tags
5.5
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.mk
+2
-2
2 additions, 2 deletions
config.mk
dwm.c
+5
-9
5 additions, 9 deletions
dwm.c
with
7 additions
and
11 deletions
config.mk
+
2
−
2
View file @
3632d713
...
@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
...
@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
X11LIB
=
/usr/X11R6/lib
X11LIB
=
/usr/X11R6/lib
# Xinerama, un-comment if you want it
# Xinerama, un-comment if you want it
#
XINERAMALIBS = -L${X11LIB} -lXinerama
XINERAMALIBS
=
-L
${
X11LIB
}
-lXinerama
#
XINERAMAFLAGS = -DXINERAMA
XINERAMAFLAGS
=
-DXINERAMA
# includes and libs
# includes and libs
INCS
=
-I
.
-I
/usr/include
-I
${
X11INC
}
INCS
=
-I
.
-I
/usr/include
-I
${
X11INC
}
...
...
This diff is collapsed.
Click to expand it.
dwm.c
+
5
−
9
View file @
3632d713
...
@@ -179,7 +179,7 @@ static void setclientstate(Client *c, long state);
...
@@ -179,7 +179,7 @@ static void setclientstate(Client *c, long state);
static
void
setlayout
(
const
Arg
*
arg
);
static
void
setlayout
(
const
Arg
*
arg
);
static
void
setmfact
(
const
Arg
*
arg
);
static
void
setmfact
(
const
Arg
*
arg
);
static
void
setup
(
void
);
static
void
setup
(
void
);
static
void
showhide
(
Client
*
c
,
unsigned
int
ntiled
);
static
void
showhide
(
Client
*
c
);
static
void
sigchld
(
int
signal
);
static
void
sigchld
(
int
signal
);
static
void
spawn
(
const
Arg
*
arg
);
static
void
spawn
(
const
Arg
*
arg
);
static
void
tag
(
const
Arg
*
arg
);
static
void
tag
(
const
Arg
*
arg
);
...
@@ -338,11 +338,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h) {
...
@@ -338,11 +338,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h) {
void
void
arrange
(
void
)
{
arrange
(
void
)
{
unsigned
int
nt
;
showhide
(
stack
);
Client
*
c
;
for
(
nt
=
0
,
c
=
nexttiled
(
clients
);
c
;
c
=
nexttiled
(
c
->
next
),
nt
++
);
showhide
(
stack
,
nt
);
focus
(
NULL
);
focus
(
NULL
);
if
(
lt
[
sellt
]
->
arrange
)
if
(
lt
[
sellt
]
->
arrange
)
lt
[
sellt
]
->
arrange
();
lt
[
sellt
]
->
arrange
();
...
@@ -1330,17 +1326,17 @@ setup(void) {
...
@@ -1330,17 +1326,17 @@ setup(void) {
}
}
void
void
showhide
(
Client
*
c
,
unsigned
int
ntiled
)
{
showhide
(
Client
*
c
)
{
if
(
!
c
)
if
(
!
c
)
return
;
return
;
if
(
ISVISIBLE
(
c
))
{
/* show clients top down */
if
(
ISVISIBLE
(
c
))
{
/* show clients top down */
XMoveWindow
(
dpy
,
c
->
win
,
c
->
x
,
c
->
y
);
XMoveWindow
(
dpy
,
c
->
win
,
c
->
x
,
c
->
y
);
if
(
!
lt
[
sellt
]
->
arrange
||
c
->
isfloating
)
if
(
!
lt
[
sellt
]
->
arrange
||
c
->
isfloating
)
resize
(
c
,
c
->
x
,
c
->
y
,
c
->
w
,
c
->
h
);
resize
(
c
,
c
->
x
,
c
->
y
,
c
->
w
,
c
->
h
);
showhide
(
c
->
snext
,
ntiled
);
showhide
(
c
->
snext
);
}
}
else
{
/* hide clients bottom up */
else
{
/* hide clients bottom up */
showhide
(
c
->
snext
,
ntiled
);
showhide
(
c
->
snext
);
XMoveWindow
(
dpy
,
c
->
win
,
c
->
x
+
2
*
sw
,
c
->
y
);
XMoveWindow
(
dpy
,
c
->
win
,
c
->
x
+
2
*
sw
,
c
->
y
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment