Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2015-11-04 07:13:48 -0500
committerLakshmi Shanmugam2015-11-04 07:16:43 -0500
commita094f2f34315e9381b33e430a301d5b553d9ae11 (patch)
tree4d3edb8eba9703c478ce42a14bd9a259c4c2d1e2 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse
parent993faa19c73b75f1f3542e6c900bb59d8810076b (diff)
downloadeclipse.platform.swt-a094f2f34315e9381b33e430a301d5b553d9ae11.tar.gz
eclipse.platform.swt-a094f2f34315e9381b33e430a301d5b553d9ae11.tar.xz
eclipse.platform.swt-a094f2f34315e9381b33e430a301d5b553d9ae11.zip
Bug 477979 - [10.11] SWT can't receive input on non-standard JVMs
Use OS.NSAnyEventMask insteadof 0 in NSApplication.nextEventMatchingMask() in Display and Tracker class. Change-Id: Ia4f24f3e013a2fcf15e601c3297d2668505893bc Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
index 3f9737b1b6..d8858677a4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
@@ -4758,6 +4758,7 @@
<enum name="NSAlphaFirstBitmapFormat" swt_gen="true"></enum>
<enum name="NSAlphaNonpremultipliedBitmapFormat" swt_gen="true"></enum>
<enum name="NSAlternateKeyMask" swt_gen="true"></enum>
+ <enum name="NSAnyEventMask" swt_gen="true"></enum>
<enum name="NSAppKitDefined" swt_gen="true"></enum>
<enum name="NSApplicationActivateIgnoringOtherApps" swt_gen="true"></enum>
<enum name="NSApplicationActivationPolicyRegular" swt_gen="true"></enum>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index 4a27915bce..e7cd674b0a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -2333,6 +2333,7 @@ public static final int NSAlertThirdButtonReturn = 1002;
public static final int NSAlphaFirstBitmapFormat = 1;
public static final int NSAlphaNonpremultipliedBitmapFormat = 2;
public static final int NSAlternateKeyMask = 524288;
+public static final int NSAnyEventMask = -1;
public static final int NSAppKitDefined = 13;
public static final int NSApplicationActivateIgnoringOtherApps = 2;
public static final int NSApplicationActivationPolicyRegular = 0;

Back to the top