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
implemented focusprev on button1 press in the bar, and focusnext on button3 press in the bar
main
Anselm R.Garbe
18 years ago
parent
d3969634ac
commit
8278f0a6be
1 changed files
with
6 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-2
event.c
+ 6
- 2
event.c
View File
@ -103,15 +103,19 @@ buttonpress(XEvent *e)
if
(
barwin
=
=
ev
-
>
window
)
{
switch
(
ev
-
>
button
)
{
default
:
case
Button1
:
x
=
0
;
for
(
a
.
i
=
0
;
a
.
i
<
ntags
;
a
.
i
+
+
)
{
x
+
=
textw
(
tags
[
a
.
i
]
)
;
if
(
ev
-
>
x
<
x
)
{
view
(
&
a
)
;
break
;
return
;
}
}
focusprev
(
NULL
)
;
break
;
case
Button3
:
focusnext
(
NULL
)
;
break
;
case
Button4
:
viewprev
(
&
a
)
;
Write
Preview
Loading…
Cancel
Save