[libhandy] tab-box: Only add threshold once when checking dnd threshold



commit 1c3d8e37557c37a76759662d561fab178b12b168
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Feb 18 16:48:57 2021 +0500

    tab-box: Only add threshold once when checking dnd threshold
    
    We were using 2x larger threshold than should have been using.

 src/hdy-tab-box.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/hdy-tab-box.c b/src/hdy-tab-box.c
index 42b9c299..277d7262 100644
--- a/src/hdy-tab-box.c
+++ b/src/hdy-tab-box.c
@@ -1786,11 +1786,6 @@ check_dnd_threshold (HdyTabBox *self)
 
   gtk_widget_get_allocation (GTK_WIDGET (self), &alloc);
 
-  alloc.x -= threshold;
-  alloc.y -= threshold;
-  alloc.width += 2 * threshold;
-  alloc.height += 2 * threshold;
-
   return self->hover_x < alloc.x - threshold ||
          self->hover_y < alloc.y - threshold ||
          self->hover_x > alloc.x + alloc.width + threshold ||


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