[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/10: Fix modifier keys resetting focus to search entry. (bug #12378)

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:36:23 CEST 2016


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

gottcode pushed a commit to annotated tag v1.5.2
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit e254b9c66e785aa5c663df6994586c2f9596bf36
Author: Graeme Gott <graeme at gottcode.org>
Date:   Sat Dec 26 18:01:50 2015 -0500

    Fix modifier keys resetting focus to search entry. (bug #12378)
---
 panel-plugin/window.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 9c5a414..9e79259 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -741,8 +741,13 @@ gboolean WhiskerMenu::Window::on_key_press_event_after(GtkWidget* widget, GdkEve
 	GtkWidget* search_entry = GTK_WIDGET(m_search_entry);
 	if ((widget != search_entry) && (gtk_window_get_focus(m_window) != search_entry))
 	{
+		GdkEventKey* key_event = reinterpret_cast<GdkEventKey*>(event);
+		if (key_event->is_modifier)
+		{
+			return false;
+		}
 		gtk_widget_grab_focus(search_entry);
-		gtk_window_propagate_key_event(m_window, reinterpret_cast<GdkEventKey*>(event));
+		gtk_window_propagate_key_event(m_window, key_event);
 		return true;
 	}
 	return false;

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


More information about the Xfce4-commits mailing list