summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2010-08-06 20:15:53 +0000
committerFelipe Heidrich <fheidric>2010-08-06 20:15:53 +0000
commit8bcb645014cac0a49675c2a6ce22b84518cb5e39 (patch)
tree4cadf3c9ee11d2954ba883a07ec2141936191345
parent3b6578434c49d9e9dcb47ee05302394f9c9ca7de (diff)
downloadeclipse.platform.swt-8bcb645014cac0a49675c2a6ce22b84518cb5e39.tar.gz
eclipse.platform.swt-8bcb645014cac0a49675c2a6ce22b84518cb5e39.tar.xz
eclipse.platform.swt-8bcb645014cac0a49675c2a6ce22b84518cb5e39.zip
BACKPORT: Bug 317902 - Segmentation Fault When Widget looses focus
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index 6fcc34fd29..b1d93b6b45 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -728,6 +728,7 @@ int /*long*/ filterProc (int /*long*/ xEvent, int /*long*/ gdkEvent, int /*long*
display.activeShell = this;
display.activePending = false;
sendEvent (SWT.Activate);
+ if (isDisposed ()) return 0;
if (isCustomResize ()) {
OS.gdk_window_invalidate_rect (OS.GTK_WIDGET_WINDOW (shellHandle), null, false);
}
@@ -749,6 +750,7 @@ int /*long*/ filterProc (int /*long*/ xEvent, int /*long*/ gdkEvent, int /*long*
display.activeShell = null;
display.activePending = false;
}
+ if (isDisposed ()) return 0;
if (isCustomResize ()) {
OS.gdk_window_invalidate_rect (OS.GTK_WIDGET_WINDOW (shellHandle), null, false);
}