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
implemented Button2 press on tags for toggletag on the focused client
config
Anselm R. Garbe
18 years ago
parent
4c368bcd24
commit
05fbbbd8dc
2 changed files
with
15 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
dwm.1
+9
-2
event.c
+ 6
- 0
dwm.1
View File
@ -47,6 +47,12 @@ and
.B floating
mode.
.TP
.B Button2
click on a tag label adds/removes that
.B tag
to/from the focused
.B window.
.TP
.B Button3
click on a tag label adds/removes all windows with that
.B tag
+ 9
- 2
event.c
View File
@ -109,10 +109,17 @@ buttonpress(XEvent *e)
for
(
a
.
i
=
0
;
a
.
i
<
ntags
;
a
.
i
+
+
)
{
x
+
=
textw
(
tags
[
a
.
i
]
)
;
if
(
ev
-
>
x
<
x
)
{
if
(
ev
-
>
button
=
=
Button1
)
switch
(
ev
-
>
button
)
{
case
Button1
:
view
(
&
a
)
;
else
if
(
ev
-
>
button
=
=
Button3
)
break
;
case
Button2
:
toggletag
(
&
a
)
;
break
;
case
Button3
:
toggleview
(
&
a
)
;
break
;
}
return
;
}
}
Write
Preview
Loading…
Cancel
Save