Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2019-11-01 18:44:53 +0000
committerEric Williams2019-11-01 19:43:50 +0000
commitbb4b85528d973e7f97e2a0b0f632b4f0f8401b9a (patch)
tree71475b4403bfe5565e5fc0611c69ee5df78abd72
parentb5044e84f950245b37cc8785ccf80192135fa6ce (diff)
downloadeclipse.platform.swt-bb4b85528d973e7f97e2a0b0f632b4f0f8401b9a.tar.gz
eclipse.platform.swt-bb4b85528d973e7f97e2a0b0f632b4f0f8401b9a.tar.xz
eclipse.platform.swt-bb4b85528d973e7f97e2a0b0f632b4f0f8401b9a.zip
Bug 371545: Many window manager warnings: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0
Give a proper timestamp to gdk_window_focus(). Tested on GTK3.24 with a child Eclipse on X11/Fedora 31. No AllNonBrowser JUnit tests fail. Change-Id: Id67741e2f0fe71f1b87809cb9d8e00772f2f40c6 Signed-off-by: Eric Williams <ericwill@redhat.com>
-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