Author Topic: right click in RC5  (Read 2898 times)

stbrock

  • Full Member
  • ***
  • Posts: 149
    • View Profile
    • http://
right click in RC5
« on: October 08, 2004, 07:10:38 pm »
I may be missing something obvious, but how do you send mouse button right-clicks and middle-clicks? Up through RC3 I used xmonobut. It still installs (though it's not in the RC5 feed), however RC5 calls up the app menu when you press the menu key and overrides xmonobut. You can still click the xmonobut icon, but that's slow and awkward. Is there an easy alternative built in?

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
right click in RC5
« Reply #1 on: October 08, 2004, 08:36:57 pm »
StBrock
Quote
I may be missing something obvious, but how do you send mouse button right-clicks and middle-clicks? Up through RC3 I used xmonobut. It still installs (though it's not in the RC5 feed), however RC5 calls up the app menu when you press the menu key and overrides xmonobut. You can still click the xmonobut icon, but that's slow and awkward. Is there an easy alternative built in?

Click and hold. /etc/xdg/openbox/rc.xml has been set so that if you hold for 400ms it is treated as a right mouse click.

 - Bundabrg
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
right click in RC5
« Reply #2 on: October 08, 2004, 09:25:51 pm »
Quote
I may be missing something obvious, but how do you send mouse button right-clicks and middle-clicks? Up through RC3 I used xmonobut. It still installs (though it's not in the RC5 feed), however RC5 calls up the app menu when you press the menu key and overrides xmonobut. You can still click the xmonobut icon, but that's slow and awkward. Is there an easy alternative built in?
The key xmonobut uses to toggle right-click is set using the -k command-line switch.  I use the Mail key, which is keycode 98, e.g.:

Code: [Select]
xmonobut -k 98
You can get ideas for keycodes from /etc/X11/kb/corgi.xmodmap.

Once you've found a keycode you like you should edit /usr/bin/xmonobut-wrap.sh and change the default.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
right click in RC5
« Reply #3 on: October 08, 2004, 09:27:39 pm »
Quote
Click and hold. /etc/xdg/openbox/rc.xml has been set so that if you hold for 400ms it is treated as a right mouse click.
Where in /etc/xdg/openbox/rc.xml is this defined?  I would love to disable the click-and-hold right-click feature but can't find the section to comment out.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
right click in RC5
« Reply #4 on: October 08, 2004, 09:51:38 pm »
Quote
rgrep
Where in /etc/xdg/openbox/rc.xml is this defined? I would love to disable the click-and-hold right-click feature but can't find the section to comment out. sad.gif

Easy, the relevant lines look like: -
Code: [Select]

 3
 200

My mistake, so its 200ms.

Actually, I think the best solution is if mousekeys is compiled, and then two buttons on the keyboard can be used as the middle and right buttons. I've already mapped the two japanese keys as ctrl and alt, but I'd be happy to sacrifice one of the bottom hotkeys as mouse buttons.

 - Bundabrg
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

stbrock

  • Full Member
  • ***
  • Posts: 149
    • View Profile
    • http://
right click in RC5
« Reply #5 on: October 08, 2004, 11:18:42 pm »
Thanks for the various suggestions on mouse clicks. I hadn't noticed that holding had any results because I almost always keep the screen in landscape position and the screen tends to move slightly with the stylus press. The slightest movement seems to derail the click and hold functionality. Drags of some window borders and frames get dropped too quickly. Double clicks also have to be on almost exactly the same spot to be recognized.

The Z is so light and moves so easily with stylus presses (at least in landscape mode) that this whole approach doesn't work well for me. My vote would be for a default configuration with keymaps for mouse functions beyond the basic point-click.

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
right click in RC5
« Reply #6 on: October 09, 2004, 01:11:29 am »
must I find out where you live and kill your puppies to get you to post new issues into a different thread?  

thanks
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
right click in RC5
« Reply #7 on: October 09, 2004, 07:07:03 am »
Quote
Quote
rgrep
Where in /etc/xdg/openbox/rc.xml is this defined? I would love to disable the click-and-hold right-click feature but can't find the section to comment out. sad.gif

Easy, the relevant lines look like: -
Code: [Select]

 3
 200

My mistake, so its 200ms.

Actually, I think the best solution is if mousekeys is compiled, and then two buttons on the keyboard can be used as the middle and right buttons. I've already mapped the two japanese keys as ctrl and alt, but I'd be happy to sacrifice one of the bottom hotkeys as mouse buttons.

 - Bundabrg
Correct me if I'm wrong, but if that's the "doubleClickTime" it shouldn't have anything to do with right-clicking, should it?  I tried removing those two lines completely from rc.xml and then restarted X and it made no difference.

I see in this thread that the behaviour is due to a patch applied to tslib.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
right click in RC5
« Reply #8 on: October 10, 2004, 08:15:39 am »
whoops... youre right. Cant believe I kept misreading that <blush>

 - Bundabrg
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

macwiz

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • http://www.macwiz.co.uk
right click in RC5
« Reply #9 on: October 18, 2004, 07:36:48 pm »
So is there a modifier key solution to right/middle clicking in RC5? I have Gimp2 running (wow) but right clicking the image by holding the 'mouse' down sometimes does things to the image before the right click clicks in.
Macwiz
c860, never quite lived up to my expectations... my fault I guess
17in MacBook Pro lovely xxxx
iPhone 3G ummm
SE P990i with UIQ3. Never enough RAM.
Pocket Loox 720 used for designing ebooks. Just don't like it though!

macwiz: apple mac support in Oxfordshire
Twitter: @boffinboy

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
right click in RC5
« Reply #10 on: October 19, 2004, 12:13:03 am »
Quote
So is there a modifier key solution to right/middle clicking in RC5? I have Gimp2 running (wow) but right clicking the image by holding the 'mouse' down sometimes does things to the image before the right click clicks in.
Install xmonobut.  It's a panel applet that allows you to switch between your mouse buttons and supports binding to a hotkey.  It's not in either of the RC5 feeds and I can't remember where I downloaded it from but it's available in this feed and should work in RC5. See my post above in this thread about how to change the hotkey (since the default, Menu, is already used in RC5).
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults