Bug 147419

Summary: Alt+Tab does not work when there is an open menu in a Java/Swing application
Product: [Plasma] kwin Reporter: Ronny Standtke <Ronny.Standtke>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ronny Standtke 2007-07-01 16:10:15 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
OS:                Linux

Whenever I use a Java/Swing application and open any menu KWin no longer accepts the Alt+Tab combination.
You can try e.g. Pauker via Java Web Start here: http://pauker.sourceforge.net/webstart/pauker.jnlp
Then open the "File" menu in Pauker. While the menu is open try pressing Alt+Tab. Notice that nothing happens.
Comment 1 Lubos Lunak 2007-07-02 14:45:46 UTC
It's not specific to Java, it happens with any application, as applications grab input while showing menus, preventing KWin from keyboard access.
Comment 2 Ronny Standtke 2007-07-28 11:01:41 UTC
When I open any menu of any KDE application I can press Alt+Tab and it works like expected.
I also gave "The Evil Operating System" a short visit and tested there. It works like expected even with open menus in Java applications.
There is something wrong, incomplete or incompatible within the group of X, KDE and Java on Linux. I would be glad if you could sit together (e.g. with the people from Sun) and resolve this bug.
Comment 3 Bram Schoenmakers 2007-07-28 20:35:07 UTC
I couldn't run the example you provided, but I ran Pipe (the petrinet editor) but could not reproduce your problem. The Alt-Tab menu just shows fine.
Comment 4 Ronny Standtke 2007-07-28 22:42:40 UTC
I also tried Pipe and can reproduce the problem with the following simple steps:
1) start Pipe
2) press Alt+F to open the file menu
3) press Alt+TAB
4) notice that nothing happens

@Bram: do you reach (4) when following this steps?
Comment 5 Bram Schoenmakers 2007-07-29 00:23:01 UTC
I can only reproduce when first pressing Tab and then Alt, but all works OK when pressing Alt and then Tab. And I think the latter method is the usual method of Alt+Tab.
Comment 6 Ronny Standtke 2007-07-29 07:04:15 UTC
I would like to reproduce your success. What distribution and Java version do you use? I am using an up-to-date Debian testing system and

$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

BTW: TAB+Alt does not work for me at all. I never tried this before. Should this work like Alt+TAB?
Comment 7 Bram Schoenmakers 2007-07-29 10:18:08 UTC
Gentoo Linux, Java 1.5.0.12 . So it could have been a change in the toolkit then. I'm quite unsure this is an exclusive KWin bug, you may try another window manager, like Gnome's, to see if it happens too.

> Should this work like Alt+TAB? 

Don't think so, though. So never mind that combo.
Comment 8 Ronny Standtke 2007-07-29 14:42:58 UTC
I also tried now Java 1.5.0.12 and... it works! Thank you very much SUN for another regression in your complete mess that is Swing on X! ;-(
Comment 9 Bram Schoenmakers 2007-07-29 22:15:22 UTC
Re-closing then. Thanks for confirming it's not a kwin issue.
Comment 10 Ronny Standtke 2007-08-18 14:09:14 UTC
Sun says it is not their fault. Please see here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6589189

Could you please reopen the bug and get together with Sun to resolve the issue?
Comment 11 Ronny Standtke 2007-08-18 14:10:09 UTC
OK, Bug reopened.
Comment 12 Lubos Lunak 2007-08-23 15:59:23 UTC

*** This bug has been marked as a duplicate of 70063 ***