Page 1 of 1

How to disable/config alt-click-move in OpenBox

Posted: Sun 19 Feb 2012, 13:38
by darkcity
I've been using Inkscape but unable to use the alt+click select-under feature with JWM. This is because JWM 'grabs' the mouse when alt is pressed to move-window. - see pic for select-under explanation

---

My first strategy was to config the alt key mapping in Inkscape - this failed under JWM

Ref-
http://wiki.inkscape.org/wiki/index.php ... n_Linux.3F

changing the mapalt="1" value in ~/.config/inkscape/preferences.xml didn't seem to do anything

---

My second strategy was to change the mouse binding in JWM, only to find out this is not possible - yet, see JWM todo list
Internationalization support for all text (added in revision 530).
Configurable mouse bindings.
Configurable window menu.
Add window list root menu item.
Add separator tray item.
http://joewing.net/programs/jwm/todo.shtml

---

The successful solution was to:


1. switch to openbox

2. edit /root/.config/openbox/rc.xml

I changed every occurrence of 'A' (alt) to 'W' (super/win key) below <context name="Frame">

changing just <mousebind button="W-Left" action="Drag"> <action name="Move"/> didn't seem to work.

Code: Select all

       <context name="Frame">
      <mousebind button="W-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="W-Left" action="Click">
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="W-Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="W-Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="W-Right" action="Drag">
        <action name="Resize"/>
      </mousebind> ...
     ...
3. Ensure Mouse/Keyboard Wizard > Advanced XOrg keyboard > Option > Alt/Win key behaviour > altwin: super_win Super is mapped to Win-Keys (default)

--

more info on OpenBox modifiers here
http://openbox.org/wiki/Help:Bindings#Modifiers

--

if anyone has changed inkscape's mapalt successfully this would be preferable to changing window manager's options...