Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 11:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
How to disable/config alt-click-move in OpenBox
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
darkcity


Joined: 23 May 2010
Posts: 2481
Location: near here

PostPosted: Sun 19 Feb 2012, 09:38    Post subject:  How to disable/config alt-click-move in OpenBox
Subject description: alt-click select-under is useful in Inkscape
 

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/Frequently_asked_questions#How_can_I_make_Alt.2Bclick_and_Alt.2Bdrag_work_on_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

Quote:
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:
       <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...
select-under.jpg
 Description   pic for select-under explanation
 Filesize   56.95 KB
 Viewed   1345 Time(s)

select-under.jpg


_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0478s ][ Queries: 12 (0.0045s) ][ GZIP on ]