[Xfce4-commits] [apps/xfce4-terminal] 01/01: Do not grab input for invisible window; fixes show/hide terminal in dropdown mode
noreply at xfce.org
noreply at xfce.org
Mon Oct 17 11:26:33 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 3a6b302bddac541f08defb84dcf80feab44b67a8
Author: Igor <f2404 at yandex.ru>
Date: Mon Oct 17 12:26:28 2016 +0300
Do not grab input for invisible window; fixes show/hide terminal in dropdown mode
---
terminal/terminal-window-dropdown.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/terminal/terminal-window-dropdown.c b/terminal/terminal-window-dropdown.c
index a89e8b4..689f906 100644
--- a/terminal/terminal-window-dropdown.c
+++ b/terminal/terminal-window-dropdown.c
@@ -425,6 +425,8 @@ terminal_window_dropdown_can_grab (gpointer data)
#if GTK_CHECK_VERSION (3, 20, 0)
GdkSeat *seat = gdk_display_get_default_seat (gtk_widget_get_display (GTK_WIDGET (data)));
+ if (!gdk_window_is_visible (window))
+ return FALSE;
status = gdk_seat_grab (seat, window, GDK_SEAT_CAPABILITY_KEYBOARD, FALSE, NULL, NULL, NULL, NULL);
#else
status = gdk_keyboard_grab (window, FALSE, GDK_CURRENT_TIME);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list