Skip to content

Commit c0f0ca5

Browse files
committed
reverse scroll wheel on root
1 parent 24f065a commit c0f0ca5

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

data/styles/Default/buttonrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Adwm*root.button1.pressed: spawn3
44
Adwm*root.button2.pressed: spawn2
55
Adwm*root.button3.pressed: spawn
6-
Adwm*root.button4.pressed: nexttag
7-
Adwm*root.button5.pressed: prevtag
6+
Adwm*root.button4.pressed: prevtag
7+
Adwm*root.button5.pressed: nexttag
88

99
Adwm*client.title.button1.pressed: move
1010
!Adwm*client.title.button1.pressed: resize

doc/adwm-buttons.5.in

+12-14
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ Defaults:
8989
.Dl Adwm* Ns Cm root.button1.pressed Li : Ar spawn3
9090
.Dl Adwm* Ns Cm root.button2.pressed Li : Ar spawn2
9191
.Dl Adwm* Ns Cm root.button3.pressed Li : Ar spawn
92-
.Dl Adwm* Ns Cm root.button4.pressed Li : Ar nexttag
93-
.Dl Adwm* Ns Cm root.button5.pressed Li : Ar prevtag
92+
.Dl Adwm* Ns Cm root.button4.pressed Li : Ar prevtag
93+
.Dl Adwm* Ns Cm root.button5.pressed Li : Ar nexttag
9494
.Ss CLIENT WINDOW
9595
Client window locations as follows:
9696
.Pp
@@ -336,10 +336,10 @@ Execute the
336336
.Cm command
337337
specified in
338338
.Xr @PACKAGE@-config 5 .
339-
.It Cm nexttag
340-
Move to the next tag (desktop/workspace).
341339
.It Cm prevtag
342340
Move to the previous tag (desktop/workspace).
341+
.It Cm nexttag
342+
Move to the next tag (desktop/workspace).
343343
.El
344344
.Pp
345345
These actions are described in more detail below:
@@ -381,20 +381,20 @@ Normally bound to mouse button #3 over the root window.
381381
.Pp
382382
Default:
383383
.Dl Adwm* Ns Cm root.button3.pressed Li : Ar spawn
384-
.It Cm nexttag
385-
Move to the previous tag/view (desktop/workspace).
386-
Normally bound to mouse button #4 (scroll wheel up) over the root
387-
window.
388-
.Pp
389-
Default:
390-
.Dl Adwm* Ns Cm root.button4.pressed Li : Ar nexttag
391384
.It Cm prevtag
392385
Move to the next tag/view (desktop/workspace).
393386
Normally bound to mouse button #5 (scroll wheel down) over the root
394387
window.
395388
.Pp
396389
Default:
397-
.Dl Adwm* Ns Cm root.button5.pressed Li : Ar prevtag
390+
.Dl Adwm* Ns Cm root.button4.pressed Li : Ar prevtag
391+
.It Cm nexttag
392+
Move to the previous tag/view (desktop/workspace).
393+
Normally bound to mouse button #4 (scroll wheel up) over the root
394+
window.
395+
.Pp
396+
Default:
397+
.Dl Adwm* Ns Cm root.button5.pressed Li : Ar nexttag
398398
.El
399399
.Ss CLIENT ACTIONS
400400
The following actions can be performed over the client window.
@@ -853,8 +853,6 @@ to move a window and which is used to resize a window. (Note that
853853
.Xr openbox 1
854854
window manager reverses these two bindings and are different from the
855855
rest of the light-weight window manager field.)
856-
compatible
857-
necessary
858856
.Sh FILES
859857
Following are the locations of the
860858
.Xr @PACKAGE@-buttons 5

src/adwm.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ Bool (*actions[LastOn][Button5-Button1+1][2]) (Client *, XEvent *) = {
190190
[Button1-Button1] = { m_spawn3, NULL },
191191
[Button2-Button1] = { m_spawn2, NULL },
192192
[Button3-Button1] = { m_spawn, NULL },
193-
[Button4-Button1] = { m_nexttag, NULL },
194-
[Button5-Button1] = { m_prevtag, NULL },
193+
[Button4-Button1] = { m_prevtag, NULL },
194+
[Button5-Button1] = { m_nexttag, NULL },
195195
},
196196
/* *INDENT-ON* */
197197
};

src/buttons.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ static ActionDef ActionDefs[] = {
1818
{ "spawn3", m_spawn3 },
1919
{ "spawn2", m_spawn2 },
2020
{ "spawn", m_spawn },
21-
{ "nexttag", m_nexttag },
2221
{ "prevtag", m_prevtag },
22+
{ "nexttag", m_nexttag },
2323
{ "resize", m_resize },
2424
{ "move", m_move },
2525
{ "shade", m_shade },
@@ -158,8 +158,8 @@ static ActionItem ActionItems[] = {
158158
{ "spawn3", NULL },
159159
{ "spawn2", NULL },
160160
{ "spawn", NULL },
161-
{ "nexttag", NULL },
162-
{ "prevtag", NULL }
161+
{ "prevtag", NULL },
162+
{ "nexttag", NULL }
163163
}
164164
}
165165
};

0 commit comments

Comments
 (0)