LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-30-2008, 05:30 PM   #1
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Post Tip: Java double-click speed annoyance solved!


I may be the only person who was unaware of this. If, please be kind

I am not a big java app user but the few I do use have long annoyed me because the double-click speed is different than that used by my other X apps, and always way too fast! This makes it difficult to navigate file dialogs, etc. I have looked for a solution off and on without success... until now!

I found a long explanation of the problem and why the fix is so obscure but I leave that to the scholarly among you and just offer the solution:

In ~/.Xdefaults (or other suitable X config read at X startup) add...
Code:
*multiClickTime: 400
...where the number is double click time in ms.

This only affects java apps and will not change your non-java click speeds.

Hope this helps someone as much as it helped me!

And Happy New Year to all!
 
Old 01-02-2009, 08:37 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by astrogeek View Post
I found a long explanation of the problem and why the fix is so obscure but ...
Thanks for the info., how about a link for those of us w/ time on our hands.
 
Old 01-02-2009, 11:47 AM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269

Original Poster
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Here are a couple of good places to start...

Quote:
Originally Posted by archtoad6 View Post
Thanks for the info., how about a link for those of us w/ time on our hands.
For a single coherent discussion on a Sun forum, look here.

Look for the post by Cruxic which includes the key:
Code:
After reading through the Java source code I think I found a solution:

Under the linux JVM

getDesktopProperty("awt.multiClickInterval")

maps roughly into a C function call to

XGetDefault(,,"multiClickTime")

The problem is that unless this value is explicitly defined it defaults to 200ms. The solution, then, is to define it.
And an old thread with reference to KDE/Gnome handling of the property, try here.

From those you can google for the property names multiClickInterval in AWT and other terms and get more clues, but these threads identify the cause and a cure. Longstanding annoyance!

Last edited by astrogeek; 01-02-2009 at 11:51 AM.
 
Old 01-02-2009, 01:02 PM   #4
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
astrogeek: In the second link in your second post they propose the workaround as you suggest.
Quote:
Add the line
*.multiClickTime: 500
to the file ~/.Xdefaults and run
xrdb -merge ~/.Xdefaults
Did you run "xrdb -merge ~/.Xdefaults" or leave it as is? Thank you for this solution.
 
Old 01-02-2009, 01:14 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269

Original Poster
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by larryhaja View Post
Did you run "xrdb -merge ~/.Xdefaults" or leave it as is?
No I did not run xdrb, I simply added the line to my ~/.Xdefaults and it is picked up automatically when X starts.

I am not actually sure, but I think the reason they add the xrdb line is to get the merge behaviour instead of replacing an existing value. Other than that, I could not see a good reason for using xrdb at that point unless your startx chain did not include ~/.Xdefaults - but admittedly, my X knowledge is mostly shallow.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 9 Core Single Click acts like Double Click. solutionsville Linux - Hardware 10 12-08-2008 10:25 AM
setting a minimum mouse double-click speed Valkyrie_of_valhalla Linux - Hardware 3 03-19-2007 02:39 PM
Double click speed with gtk and thunderbird Christophe_35 Linux - Software 2 06-10-2005 04:04 PM
Double click speed Christophe_35 Linux - Software 2 04-07-2005 11:07 AM
executable jar in java (cannot double click) spyghost Programming 3 09-29-2003 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration