Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java4
1 files changed, 2 insertions, 2 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 6688de4215..2069a34b54 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
@@ -623,9 +623,9 @@ void bringToTop (boolean force) {
}
} else {
if (GTK.GTK4) {
- GDK.gdk_surface_focus (gdkResource, GDK.GDK_CURRENT_TIME);
+ GDK.gdk_surface_focus (gdkResource, display.lastUserEventTime);
} else {
- GDK.gdk_window_focus (gdkResource, GDK.GDK_CURRENT_TIME);
+ GDK.gdk_window_focus (gdkResource, display.lastUserEventTime);
}
}
display.activeShell = this;

Back to the top