[Xfce4-commits] <xfwm4:master> Fix mouse interactions with tabwin buttons

Nick Schermer noreply at xfce.org
Sun Feb 23 21:10:21 CET 2014


Updating branch refs/heads/master
         to 23326d090735ea9adf09eb28ee7525280b77e4b0 (commit)
       from 4f82083800158f381f44aebb9cfc0901b45042be (commit)

commit 23326d090735ea9adf09eb28ee7525280b77e4b0
Author: cedric <cedl38 at gmail.com>
Date:   Sun Dec 1 01:36:11 2013 +0100

    Fix mouse interactions with tabwin buttons
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>

 src/tabwin.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/tabwin.c b/src/tabwin.c
index c25a403..e8713b8 100644
--- a/src/tabwin.c
+++ b/src/tabwin.c
@@ -673,13 +673,17 @@ tabwinChange2Selected (Tabwin *t, GList *selected)
 
             if (c != NULL)
             {
-                if (c->screen_info->params->cycle_tabwin_mode == STANDARD_ICON_GRID)
+                /* don't clear label if mouse is inside the previously
+                 * selected button */
+                if (c->screen_info->params->cycle_tabwin_mode == STANDARD_ICON_GRID
+                    && window_button != t->hovered)
                 {
                     gtk_label_set_text (GTK_LABEL (buttonlabel), "");
                 }
 
                 if (c == t->selected->data)
                 {
+                    gtk_widget_grab_focus (window_button);
                     tabwinSetSelected (tbw, window_button, buttonlabel);
                     gtk_widget_queue_draw (GTK_WIDGET(tbw));
                 }


More information about the Xfce4-commits mailing list