#3714 Keyboard not working after refocus, Linux+Compiz

closed-invalid
nobody
None
5
2012-06-28
2012-06-15
Przemek Wesolek
No

After I upgraded to Java 7, jEdit stopped to respond to key events after re-gaining window focus.

After selecting View-New view, in the opened view everything works fine (until refocusing again, of course), in the old view the problems persist.

What doesn't work:
- entering text in text area
- shortcuts
- navigating menus after mouse-clicking on menubar

What works:
- text entering and keyboard navigation in dialogs

Steps to reproduce
1. Start jEdit cleanly
$ rm new.settings
$ mkdir new.settings
$ jedit -settings=new.settings
2. Focus on text area by clicking inside (don't close "jEdit Help" window!)
3. Try typing (new characters appear in text area) or hit any shortcut (works)
4. Lose focus (either Alt-TAB to other window, or click with a mouse on other window or desktop)
5. Gain focus (either Alt-TAB to jEdit window, or click with a mouse on jEdit's text area)

Discussion

  •  
    Attachments
  • Environment information:

    Linux Ubuntu 10.04 with GNOME 2

    jEdit 4.5.1 installed from DEB file

    09:51:06 [main] [message] Log: java.version=1.7.0_05
    09:51:06 [main] [message] Log: java.vm.version=23.1-b03
    09:51:06 [main] [message] Log: java.vm.name=Java HotSpot(TM) Server VM
    09:51:06 [main] [message] Log: java.runtime.version=1.7.0_05-b05
    09:51:06 [main] [message] Log: java.runtime.name=Java(TM) SE Runtime Environment
    09:51:06 [main] [message] Log: java.vendor=Oracle Corporation
    09:51:06 [main] [message] Log: java.compiler=null
    09:51:06 [main] [message] Log: os.name=Linux
    09:51:06 [main] [message] Log: os.version=3.0.0-21-generic-pae
    09:51:06 [main] [message] Log: os.arch=i386
    09:51:06 [main] [message] Log: user.home=/home/jest
    09:51:06 [main] [message] Log: java.home=/usr/lib/jvm/java-7-oracle/jre
    09:51:06 [main] [message] Log: java.class.path=/usr/share/jEdit/jedit.jar
    09:51:06 [main] [message] jEdit: starting with command line arguments: -reuseview -reusev
    iew -settings=new.settings
    09:51:06 [main] [notice] jEdit: jEdit version 4.5.1
    09:51:06 [main] [message] jEdit: Settings directory is /home/jest/new.settings
    09:51:06 [main] [message] jEdit: jEdit home directory is /usr/share/jEdit

     
    • summary: Keyboard not working after refocus --> Keyboard not working after refocus, Linux, sun java 7
     
  • Also confirmed on SVN trunk as of today.

     
  • I think this has something in common with Compiz running.

    There are numerous bugs filled for JRE, Netbeans or Compiz considering cooperation between Java and Compiz. What makes me think that this bug is belonging to the same family of problems is that I can workaround the problem by restarting Compiz *after* jEdit is running:

    $ jedit
    $ compiz --replace

     
  • Maybe related to #2676950?

     
  • Alan Ezust
    Alan Ezust
    2012-06-28

    Can not reproduce in current Debian Testing with KDE 4.8.3, java version "1.7.0_03"
    OpenJDK Runtime Environment (IcedTea7 2.1.1) (7~u3-2.1.1-1)
    OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)

     
  • Alan, do you use Compiz? My investigations show it's probably a Java-Compiz issue.

    Moreover, I noticed the same problems yesterday with JabRef (also a Java app).

    I propose to mark as invalid.

     
  • Alan Ezust
    Alan Ezust
    2012-06-28

    KDE 4.2 does not use compiz. It has its own compositing system.

     
  • Alan Ezust
    Alan Ezust
    2012-06-28

    • summary: Keyboard not working after refocus, Linux, sun java 7 --> Keyboard not working after refocus, Linux+Compiz
    • status: open --> closed-invalid
     
  • Alan Ezust
    Alan Ezust
    2012-06-28

    closing as invalid. Resolution: don't use compiz.

     
  • Oh, please...

     
  • Ingo Lindholm
    Ingo Lindholm
    2012-12-14

    The same problem with Ubuntu 12.04 LTS + GNOME2 + icewm: the keyboard works only in Dialogboxes. Tried with openjdk 7u9-2.3.3 and Oracle JRE 1.7.0_10.

    But Java 6 works (Oracle JRE 1.6.0_38)!