[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix setting focus to dropdown window

noreply at xfce.org noreply at xfce.org
Tue Oct 4 14:52:03 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 6a377f06128198fcf6ab20015574eade253945ef
Author: Igor <f2404 at yandex.ru>
Date:   Tue Oct 4 15:50:07 2016 +0300

    Fix setting focus to dropdown window
    
    Should also resolve https://bugzilla.xfce.org/show_bug.cgi?id=12878
---
 terminal/terminal-util.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/terminal/terminal-util.c b/terminal/terminal-util.c
index b0392b0..f851ee9 100644
--- a/terminal/terminal-util.c
+++ b/terminal/terminal-util.c
@@ -103,7 +103,7 @@ terminal_util_activate_window (GtkWindow *window)
   terminal_return_if_fail (GTK_IS_WINDOW (window));
   terminal_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (window)));
 
-  if (!GDK_IS_X11_WINDOW (window))
+  if (!GDK_IS_X11_WINDOW (gtk_widget_get_window (GTK_WIDGET (window))))
     return;
 
   /* leave if the window is already active */
@@ -117,7 +117,8 @@ terminal_util_activate_window (GtkWindow *window)
   event.window = GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (window)));
   event.message_type = gdk_x11_get_xatom_by_name ("_NET_ACTIVE_WINDOW");
   event.format = 32;
-  event.data.l[0] = 0;
+  event.data.l[0] = 1; /* app */
+  event.data.l[1] = event.data.l[2] = event.data.l[3] = event.data.l[4] = 0;
 
   gdk_error_trap_push ();
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list