Bug 196741 - java/openjdk7: Mouse will have an offset, when windows are maximized under Gnome3
Summary: java/openjdk7: Mouse will have an offset, when windows are maximized under Gn...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-15 01:10 UTC by huanghwh
Modified: 2015-02-02 13:34 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (glewis)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description huanghwh 2015-01-15 01:10:20 UTC
When maximizing Java window under Gnome3, the mouse will have an offset, you could not select the menu item.

This patch can fix it:


--- openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java.orig	2015-01-15 09:06:22.000000000 +0800
+++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java	2015-01-15 08:46:42.000000000 +0800
@@ -578,7 +578,7 @@
     }
 
     static boolean isMutter() {
-        return isNetWMName("Mutter");
+        return isNetWMName("Mutter") || isNetWMName("GNOME Shell");
     }
Comment 1 Bugzilla Automation freebsd_committer 2015-01-15 01:10:20 UTC
Auto-assigned to maintainer glewis@FreeBSD.org
Comment 2 commit-hook freebsd_committer 2015-02-02 04:57:03 UTC
A commit references this bug:

Author: glewis
Date: Mon Feb  2 04:56:58 UTC 2015
New revision: 378291
URL: https://svnweb.freebsd.org/changeset/ports/378291

Log:
  . Fix window maximisation under Gnome 3.

  PR:		196741
  Submitted by:	huanghwh@gmail.com

Changes:
  head/java/openjdk7/files/patch-src-solaris-classes-sun-awt-X11-XWM.java
Comment 3 Greg Lewis freebsd_committer 2015-02-02 13:34:33 UTC
Thanks, this change has been committed.