[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/01: Fix modifier keys resetting focus to search entry. (bug #12378)
noreply at xfce.org
noreply at xfce.org
Sun Dec 27 00:08:32 CET 2015
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit 3f3ebe76131fa0cdeccbc4f7f349e12bb575cdb3
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 491b934..8997b9d 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -756,8 +756,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