Skip to content

Commit

Permalink
remap buttons 4 and 5 to 8 and 9 since that's what xev should see
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19073 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 25, 2018
1 parent 63e6624 commit 459314c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,12 @@ XpraClient.prototype.do_window_mouse_click = function(e, window, pressed) {
}
var button = mouse.button;
this.debug("mouse", "click:", button, pressed, x, y);
if (button==4) {
button = 8;
}
else if (button==5) {
button = 9;
}
var me = this;
setTimeout(function() {
me.send(["button-action", wid, button, pressed, [x, y], modifiers, buttons]);
Expand Down

0 comments on commit 459314c

Please sign in to comment.