mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
allow mouse button4 and button5; from Rodrigo Mosconi
This commit is contained in:
parent
6059073a5f
commit
8b00f438be
6
conf.c
6
conf.c
@ -545,7 +545,9 @@ static struct {
|
|||||||
{ "menu_cmd", mousefunc_menu_cmd, MOUSEBIND_CTX_ROOT },
|
{ "menu_cmd", mousefunc_menu_cmd, MOUSEBIND_CTX_ROOT },
|
||||||
};
|
};
|
||||||
|
|
||||||
static unsigned int mouse_btns[] = { Button1, Button2, Button3 };
|
static unsigned int mouse_btns[] = {
|
||||||
|
Button1, Button2, Button3, Button4, Button5
|
||||||
|
};
|
||||||
|
|
||||||
int
|
int
|
||||||
conf_mousebind(struct conf *c, char *name, char *binding)
|
conf_mousebind(struct conf *c, char *name, char *binding)
|
||||||
@ -571,7 +573,7 @@ conf_mousebind(struct conf *c, char *name, char *binding)
|
|||||||
} else
|
} else
|
||||||
substring = name;
|
substring = name;
|
||||||
|
|
||||||
button = strtonum(substring, 1, 3, &errstr);
|
button = strtonum(substring, 1, 5, &errstr);
|
||||||
if (errstr)
|
if (errstr)
|
||||||
warnx("button number is %s: %s", errstr, substring);
|
warnx("button number is %s: %s", errstr, substring);
|
||||||
|
|
||||||
|
6
cwmrc.5
6
cwmrc.5
@ -14,7 +14,7 @@
|
|||||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: December 17 2012 $
|
.Dd $Mdocdate: January 8 2013 $
|
||||||
.Dt CWMRC 5
|
.Dt CWMRC 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -206,6 +206,10 @@ Left mouse button.
|
|||||||
Middle mouse button.
|
Middle mouse button.
|
||||||
.It 3
|
.It 3
|
||||||
Right mouse button.
|
Right mouse button.
|
||||||
|
.It 4
|
||||||
|
Scroll up mouse button.
|
||||||
|
.It 5
|
||||||
|
Scroll down mouse button.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
|
Loading…
Reference in New Issue
Block a user