I'm trying to set up Fusuma with 3 fingers swipe up/down to display "View All Windows" (this window can be accessed by Ctrl+Alt+Down too). However, sometimes it's catching "Middle Button" right after the swipe.
This results in closing the application that the mouse is currently hovering over (in View All Windows). It's really annoying.
I've tried to look for settings to disable this option, but I couldn't find it. There was a thread created awhile ago talking about this, but there was no real solution.
My questions are:
What I don't want to do: 1. Disable middle button globally. I still want to use it.
My setups:
EDIT: I think I've found where the code is. Here's the snippet of the responsible code in workspace.js:
_onButtonRelease: function(actor, event) {
if ( event.get_button()==1 ) {
this._selected = true;
this.emit('activated', global.get_current_time());
return true;
}
if (event.get_button()==2){
this.emit('closed', global.get_current_time());
return true;
}
if (event.get_button()==3){
if (!this.menuCancelled) {
this.emit('context-menu-requested');
}
this.menuCancelled = false;
return true;
}
return false;
}
However, I'm still lost on how to compile it. Does anyone have any idea?
The file is in:
/usr/share/cinnamon/js/ui/workspace.js
All I need to do is comment out this line:
this.emit('closed', global.get_current_time());
And restart Cinnamon with Ctrl + Alt + ESC.
It's working great now, woohoo!!