changeset 3169:65bd45308475

6984039: awt source rebranding vendor changes needed (jdk7 only) Reviewed-by: prr, ohair
author art
date Tue, 09 Nov 2010 14:02:54 +0300
parents 9c7c5ecea41a
children 4c5aa2af3540
files src/solaris/native/sun/awt/awt_MToolkit.c src/solaris/native/sun/awt/fontpath.c src/solaris/native/sun/xawt/XWindow.c
diffstat 3 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/awt_MToolkit.c	Mon Nov 08 18:02:15 2010 +0300
+++ b/src/solaris/native/sun/awt/awt_MToolkit.c	Tue Nov 09 14:02:54 2010 +0300
@@ -2773,11 +2773,6 @@
         }
     }
 
-    /*
-    scrollBugWorkAround =
-        (strcmp(XServerVendor(awt_display), "Sun Microsystems, Inc.") == 0
-         && XVendorRelease(awt_display) == 3400);
-    */
     scrollBugWorkAround = TRUE;
 
     /*
--- a/src/solaris/native/sun/awt/fontpath.c	Mon Nov 08 18:02:15 2010 +0300
+++ b/src/solaris/native/sun/awt/fontpath.c	Tue Nov 09 14:02:54 2010 +0300
@@ -557,7 +557,8 @@
 #ifndef HEADLESS
 static int isSunXServer() {
 #ifdef __solaris__
-  return (strcmp("Sun Microsystems, Inc.", ServerVendor(awt_display)) == 0 &&
+  return ((strncmp(ServerVendor(awt_display), "Sun Microsystems, Inc.", 22) == 0) ||
+          (strncmp(ServerVendor(awt_display), "Oracle Corporation", 18) == 0) &&
           VendorRelease(awt_display) >= 6410);
 #else
   return 0;
--- a/src/solaris/native/sun/xawt/XWindow.c	Mon Nov 08 18:02:15 2010 +0300
+++ b/src/solaris/native/sun/xawt/XWindow.c	Tue Nov 09 14:02:54 2010 +0300
@@ -766,7 +766,9 @@
 static Boolean
 isXsunServer(XEvent *event) {
     if( awt_ServerDetected ) return awt_IsXsun;
-    if( strncmp( ServerVendor( event->xkey.display ), "Sun Microsystems, Inc.", 32) ) {
+    if( (strncmp( ServerVendor( event->xkey.display ), "Sun Microsystems, Inc.", 22) != 0) &&
+        (strncmp( ServerVendor( event->xkey.display ), "Oracle Corporation", 18) != 0) )
+    {
         awt_ServerDetected = True;
         awt_IsXsun = False;
         return False;