After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679542 - When maximizing a java swing application the menu collapses immediately
When maximizing a java swing application the menu collapses immediately
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
3.6.x
Other Linux
: Normal major
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-07-07 06:50 UTC by nehsog
Modified: 2014-04-26 14:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description nehsog 2012-07-07 06:50:37 UTC
When I maximize a java swing application (e.g. Netbeans or Oracle JDeveloper) I cannot use the application's menu, because it collapses immediately after clicking on it. This bug is already recognized by Oracle, but they say it should be a Gnome3 problem. When running a swing application in other DE, such as XFCE, LXDE and unity this problem does not occur.

Please see a video that illustrates the problem at http://youtu.be/noq6OhuWPQA 
This video is made by the user who filed the bug at oracle.

It seems to me that there is an error in offset calculation. When having two menus (lets say "file" and "edit") and I click on "file", keeping the mouse button pressed and move over to menu "edit" I am able to select entries from the "file" menu.

Workaround for this problem is to perform the following steps:
1. move window to upper left corner (position [0,0])
2. then maximize the window
When doing this, the bug does not appear!
Comment 1 Thomas Leberbauer 2012-12-17 15:07:49 UTC
This has also been discussed here: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/777425

I can confirm the issue for GNOME Shell 3.6.1 with openjdk 1.7.0_09. Will this issue be addressed soon?
Comment 2 nehsog 2013-01-24 10:16:14 UTC
It seems that the Linux Mint guys fixed the issue:
https://github.com/linuxmint/muffin/pull/11
Comment 3 Florian Müllner 2013-01-24 11:01:16 UTC
(In reply to comment #2)
> It seems that the Linux Mint guys fixed the issue:
> https://github.com/linuxmint/muffin/pull/11

Given that the fix consists in changing the WM_NAME property back to "Mutter" to trigger special-casing in Java itself, is this still an issue? If so, the problem would be that we use a WM_NAME of "GNOME Shell" nowadays, and Oracle would be expected to use the same special case as for "Mutter".
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-01-24 16:31:47 UTC
http://hg.openjdk.java.net/jdk8/awt/jdk/file/7cda96a78260/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java

On line 723 in this file (I can't link to the line directly) is where they check for Mutter.
Comment 5 Robin Stocker 2013-04-17 11:39:52 UTC
Filed bug against IcedTea:

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1400

Omair Majid is looking into the fix, see Red Hat bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=918055#c9
Comment 6 Robin Stocker 2014-01-15 00:04:58 UTC
The bug has been fixed in IcedTea and I can no longer reproduce the problem with Fedora 20, I think this can be marked as resolved.
Comment 7 Florian Müllner 2014-04-26 14:48:11 UTC
Closing as of comment #6