summaryrefslogtreecommitdiff
path: root/D132929.diff
diff options
context:
space:
mode:
Diffstat (limited to 'D132929.diff')
-rw-r--r--D132929.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/D132929.diff b/D132929.diff
new file mode 100644
index 0000000..0a61842
--- /dev/null
+++ b/D132929.diff
@@ -0,0 +1,18 @@
+diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+--- a/widget/gtk/nsWindow.cpp
++++ b/widget/gtk/nsWindow.cpp
+@@ -2946,7 +2946,12 @@
+ uint32_t timestamp = GDK_CURRENT_TIME;
+
+ nsGTKToolkit* GTKToolkit = nsGTKToolkit::GetToolkit();
+- if (GTKToolkit) timestamp = GTKToolkit->GetFocusTimestamp();
++ if (GTKToolkit) {
++ timestamp = GTKToolkit->GetFocusTimestamp();
++ }
++ if (!timestamp) {
++ timestamp = GetLastUserInputTime();
++ }
+
+ LOG(" requesting toplevel activation [%p]\n", (void*)toplevelWindow);
+ gtk_window_present_with_time(GTK_WINDOW(toplevelWindow->mShell),
+
bgstack15