Fixing Double-Click Interval for Java Applications Under Linux
Dec 4, 2011
If you are using any Java applications (such as IntelliJ IDEA or RubyMine) under Linux / KDE you may have wondered why their response to double-clicks is somewhat sluggish or unreliable. As it turns out, Java (Swing) ignores KDE’s setting for the double-click interval, so Java uses a pretty short default (AFAIK ~200 ms).
To fix this, create a file named .Xresources
in your home directory and add the following line:
*.multiClickTime: 500
Set its value to whatever interval you prefer (the example is using 500 ms).
Edit: JetBrains support just mailed me that the root cause is a bug in the JDK, reported in 2004 and fixed in Java 7 (doh!): http://bugs.sun.com/view_bug.do?bug_id=5076635