[eom] 01/01: debian/patches: Add 0001_fix-new-windows-dont-get-focus.patch. Fix new windows don't get focus. (Closes: #813323).
Pablo Barciela
zenwalker-guest at moszumanska.debian.org
Tue Jan 31 11:49:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
zenwalker-guest pushed a commit to branch debian/jessie/updates
in repository eom.
commit 274fe2c417f7aae37ec15dc338165d415c50dbed
Author: Pablo Barciela <scow at riseup.net>
Date: Tue Jan 31 12:48:52 2017 +0100
debian/patches: Add 0001_fix-new-windows-dont-get-focus.patch. Fix new windows don't get focus. (Closes: #813323).
---
.../0001_fix-new-windows-dont-get-focus.patch | 32 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/0001_fix-new-windows-dont-get-focus.patch b/debian/patches/0001_fix-new-windows-dont-get-focus.patch
new file mode 100644
index 0000000..a863fca
--- /dev/null
+++ b/debian/patches/0001_fix-new-windows-dont-get-focus.patch
@@ -0,0 +1,32 @@
+Description: Fix new windows don't get focus
+Author: vfscanf
+Upstream commit: https://github.com/mate-desktop/eom/commit/1b65a062fc01e15c4a461463a055b90d8cb3235e
+--- a/src/eom-application.c
++++ b/src/eom-application.c
+@@ -279,8 +279,24 @@ eom_application_get_file_window (EomApplication *application, GFile *file)
+ static void
+ eom_application_show_window (EomWindow *window, gpointer user_data)
+ {
+- gtk_window_present_with_time (GTK_WINDOW (window),
+- GPOINTER_TO_UINT (user_data));
++ guint32 timestamp = GPOINTER_TO_UINT (user_data);
++
++ /* set the proper interaction time on the window.
++ * Fall back to roundtripping to the X server when we
++ * don't have the timestamp, e.g. when launched from
++ * terminal. We also need to make sure that the window
++ * has been realized otherwise it will not work. lame.
++ */
++ if (!gtk_widget_get_realized (GTK_WIDGET (window)))
++ gtk_widget_realize (GTK_WIDGET (window));
++
++ if (timestamp <= 0)
++ timestamp = gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (window)));
++
++ gdk_x11_window_set_user_time (gtk_widget_get_window (GTK_WIDGET (window)),
++ timestamp);
++
++ gtk_window_present (GTK_WINDOW (window));
+ }
+
+ /**
diff --git a/debian/patches/series b/debian/patches/series
index 057f77c..ff7f0aa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+0001_fix-new-windows-dont-get-focus.patch
1001_fix-hyphens-on-man-page.patch
2001_omit-gfdl-licensed-help-files.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/eom.git
More information about the pkg-mate-commits
mailing list