Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Nemkin2018-02-21 10:04:50 -0500
committerNiraj Modi2018-04-17 03:34:22 -0400
commitf1e5d4d2ca7dd44bfbe1fbd7709ca41a7d710742 (patch)
treee181c789a452ed8f8a470ad39b137a71b5abf48a /bundles/org.eclipse.swt/Eclipse SWT/win32
parent36eb56513ac01971058419bae5bcda99a562df24 (diff)
downloadeclipse.platform.swt-f1e5d4d2ca7dd44bfbe1fbd7709ca41a7d710742.tar.gz
eclipse.platform.swt-f1e5d4d2ca7dd44bfbe1fbd7709ca41a7d710742.tar.xz
eclipse.platform.swt-f1e5d4d2ca7dd44bfbe1fbd7709ca41a7d710742.zip
Bug 533557 - [Win32] Remove workaround for Adobe Reader 7.0
Adobe Reader 7.0 (released in 2005) isn't available anymore. The bug is not reproducible with Reader 11.0 and later. Original bug 56184. Change-Id: I9c5c6ecc9ca59ea307f7d78bb700d95f058b88ed Signed-off-by: Nikita Nemkin <nikita@nemkin.ru>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
index 6abc801719..20792102fb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
@@ -397,9 +397,6 @@ public class Display extends Device {
static int DI_GETDRAGIMAGE;
static int SWT_OPENDOC;
- /* Workaround for Adobe Reader 7.0 */
- int hitCount;
-
/* Skinning support */
Widget [] skinList = new Widget [GROW_SIZE];
int skinCount;
@@ -4773,26 +4770,6 @@ long /*int*/ windowProc (long /*int*/ hwnd, long /*int*/ msg, long /*int*/ wPara
}
}
}
- /*
- * Bug in Adobe Reader 7.0. For some reason, when Adobe
- * Reader 7.0 is deactivated from within Internet Explorer,
- * it sends thousands of consecutive WM_NCHITTEST messages
- * to the control that is under the cursor. It seems that
- * if the control takes some time to respond to the message,
- * Adobe stops sending them. The fix is to detect this case
- * and sleep.
- *
- * NOTE: Under normal circumstances, Windows will never send
- * consecutive WM_NCHITTEST messages to the same control without
- * another message (normally WM_SETCURSOR) in between.
- */
- if ((int)/*64*/msg == OS.WM_NCHITTEST) {
- if (hitCount++ >= 1024) {
- try {Thread.sleep (1);} catch (Throwable t) {}
- }
- } else {
- hitCount = 0;
- }
if (lastControl != null && lastHwnd == hwnd) {
return lastControl.windowProc (hwnd, (int)/*64*/msg, wParam, lParam);
}

Back to the top