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 Wed 26 Nov 2014, 03:52
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 Posts_count_1  
Author Message
darkcity


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

PostPosted: Sun 19 Feb 2012, 09:38    Post_subject:  How to disable/config alt-click-move in OpenBox
Sub_title: 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   1191 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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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