[Xfce4-commits] [panel-plugins/xfce4-verve-plugin] 01/02: Fix text selection bu only focusing panel widget on click if it doesn't already have focus

noreply at xfce.org noreply at xfce.org
Sun Feb 15 20:56:26 CET 2015


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

isaacschemm pushed a commit to branch master
in repository panel-plugins/xfce4-verve-plugin.

commit 55449bc2faee3fcb93cbd3dcae9f3faae4fda5ae
Author: Isaac Schemm <isaacschemm at gmail.com>
Date:   Mon Feb 9 18:46:11 2015 -0600

    Fix text selection bu only focusing panel widget on click if it doesn't already have focus
---
 panel-plugin/verve-plugin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugin/verve-plugin.c b/panel-plugin/verve-plugin.c
index 7a0f3c7..6811b5b 100644
--- a/panel-plugin/verve-plugin.c
+++ b/panel-plugin/verve-plugin.c
@@ -211,7 +211,7 @@ verve_plugin_buttonpress_cb (GtkWidget *entry,
     verve_plugin_focus_timeout_reset (verve);
 
   /* Grab entry focus if possible */
-  if (event->button != 3 && toplevel && toplevel->window)
+  if (event->button != 3 && toplevel && toplevel->window && !GTK_WIDGET_HAS_FOCUS(entry))
     xfce_panel_plugin_focus_widget (verve->plugin, entry);
 
   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