Skip to content

buttonrebinds: permit binding any mouse button

Paul Dann requested to merge giddie/kwin:button-rebinding into master

This makes it possible to swap the "middle" and "back" buttons, for example.

Scratching on some itches:

Example of this in the kcminputrc config file:

[ButtonRebinds][Mouse]                                                                                                                                                                                                                                                                                                   
MiddleButton=MouseButton,275                                                                                                                                                                                                                                                                                             
ExtraButton1=MouseButton,274

Native button codes are needed. I expected these to follow the definitions from libinput, so I'm very confused as to why "back" is not 278. I determined by trial and error that it is 275. I'd be curious to find out why.

Next on the to-do list is to make this config per-device instead of global.

Edited by Paul Dann

Merge request reports

Loading