[gtk+/wip/carlosg/event-delivery: 81/104] scrolledwindow: Stop checking event->detail in leave-notify



commit 782477188a3437f6fec157946d7519ca8eeda456
Author: Timm B├Ąder <mail baedert org>
Date:   Tue May 9 19:03:38 2017 +0200

    scrolledwindow: Stop checking event->detail in leave-notify
    
    This is obsolete and resulted in sometimes stuck .hovering style classes
    on scrollbars.

 gtk/gtkscrolledwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index ad4a41b..c3d437d 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -428,7 +428,7 @@ gtk_scrolled_window_leave_notify (GtkWidget        *widget,
 {
   GtkScrolledWindowPrivate *priv = GTK_SCROLLED_WINDOW (widget)->priv;
 
-  if (priv->use_indicators && event->detail != GDK_NOTIFY_INFERIOR)
+  if (priv->use_indicators)
     {
       indicator_set_over (&priv->hindicator, FALSE);
       indicator_set_over (&priv->vindicator, FALSE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]