-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi i3 users!
I have encountered an annoying issue in i3:
Java Textareas do not regain focus if they get blurred.
Maybe it's a problem of the Java JVM, but as this bug is nonexistent
under lxde or gnome,
i think it could have to do with my i3.
Please run this Java code and let me know if you have the same problem:
==========================================
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
/**
* Demonstrates the Java Textarea focus bug under i3
* @author Jonas Jelten
*/
public class WindowFocusBug {
public static void main(String[] args) {
WindowFocusBug b = new WindowFocusBug();
}
public WindowFocusBug() {
JFrame f = new JFrame("i3 java window focus bug test");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTextArea a = new JTextArea("Welcome to the nasty Java window
focus bug, this test application is by Jonas Jelten\r\n\r\n"
+ "The bug occurs in the following applications, and it
is extremely annoying:\r\n"
+ "* Minecraft\r\n* Netbeans\r\n* all other Java
applications"
+ "\r\n\r\nTry to reproduce it by changing something in
this JTestArea, then switch to another window"
+ "like Firefox or whatever, come back to this window
and click in this text area again, and try to change something."
+ "\r\nI am not able to regain any focus to the textarea
again, it seems to have turned read only."
+ "\r\n\r\n"
+ "I have no idea whether this is i3's fault, or java's.
please test it and figure it out.");
a.setLineWrap(true);
a.setWrapStyleWord(true);
JScrollPane p = new JScrollPane(a);
f.setSize(500, 400);
f.add(p);
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
f.requestFocus();
}
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJPH9D4AAoJEMCMsfQ1RG1iSWkQAKLJhUnY/J3t2osEnLMLjiu8
uAtQrRxgKOEdCeZmK3CNv74i0S7xUWGWRkfmrXbwI1L5uM08SUPRQ7JYS8DSCyaf
CoGCIsFCweLqHnhzn99cLDJXso59nM34vksCUgnfHhzmYqmtV2d1jh7RNkZbiyQc
VClbfzghES4oU+OM1wqEXh5otiwHZ0EWlzQfUEzUoADDhzXwxp8TagmNjl4SuBSG
1DZaJd+kJQSsiBKVMzgbgSBNOy8m3m6CkOUJfBHoWnUhZKTbWULNCOsS92LxMv9p
wWm5bF5cgn38g7jZggs7ki7Ua67/HbvmJ8/aH4zFF0OL4buH13ihimP4xV5+hCvC
ybN/gpLn7g/+r1TzJQVZI7CplEqIvKfNiUSgnCD5/p/r5BKZ+40GARG25zkMXMEO
9/Kmz/Xa4gOgPJLibhFxIoGpTkc6wGrMMgJyMArj2RHsujEmJP+OJfNDIFru2T14
CG46Teh4qznWcwfDfuBXeGM2R1UM3kgupRedCsZA4jP3EE7wfO50XwTM3aQ7jCBc
JyHYr/PhSESMMkj2BdVl+da5uYwHL6sNsYEdDzplcoiEVEOetrB+qmTsUhdT6pEQ
CG79iQH/GceeHe3vyvh/r96MoOBQt1HPKonxXI7cKTjTjHBTH6mX1dT9V7pwMtAm
jEWQJks1Qc+t5kXDCHBg
=xGQM
-----END PGP SIGNATURE-----