[Xfce4-commits] [xfce/exo] 01/01: Fix prelight deactivation (bug #11806)

noreply at xfce.org noreply at xfce.org
Sun Nov 3 23:44:24 CET 2019


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

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/exo.

commit 37e00da8247a6b60cad1cc91e734805000cba926
Author: Adam Purkrt <adam at purkrt.net>
Date:   Wed Oct 30 19:22:59 2019 +0100

    Fix prelight deactivation (bug #11806)
    
    Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
 exo/exo-icon-view.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c
index b392575..607c80a 100644
--- a/exo/exo-icon-view.c
+++ b/exo/exo-icon-view.c
@@ -1721,6 +1721,7 @@ exo_icon_view_realize (GtkWidget *widget)
   attributes.event_mask = GDK_EXPOSURE_MASK
                         | GDK_SCROLL_MASK
                         | GDK_POINTER_MOTION_MASK
+                        | GDK_LEAVE_NOTIFY_MASK
                         | GDK_BUTTON_PRESS_MASK
                         | GDK_BUTTON_RELEASE_MASK
                         | GDK_KEY_PRESS_MASK
@@ -2977,10 +2978,19 @@ static gboolean
 exo_icon_view_leave_notify_event (GtkWidget        *widget,
                                   GdkEventCrossing *event)
 {
+  ExoIconView         *icon_view = EXO_ICON_VIEW (widget);
+
   /* reset cursor to default */
   if (gtk_widget_get_realized (widget))
     gdk_window_set_cursor (gtk_widget_get_window (widget), NULL);
 
+  /* reset the prelit item (if any) */
+  if (G_LIKELY (icon_view->priv->prelit_item != NULL))
+    {
+      exo_icon_view_queue_draw_item (icon_view, icon_view->priv->prelit_item);
+      icon_view->priv->prelit_item = NULL;
+    }
+
   /* call the parent's leave_notify_event (if any) */
   if (GTK_WIDGET_CLASS (exo_icon_view_parent_class)->leave_notify_event != NULL)
     return (*GTK_WIDGET_CLASS (exo_icon_view_parent_class)->leave_notify_event) (widget, event);

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


More information about the Xfce4-commits mailing list