[Xfce4-commits] [xfce/xfce4-panel] 01/01: tasklist: Fix drag&drop in deskbar mode (Bug #16298)

noreply at xfce.org noreply at xfce.org
Sat Dec 28 20:48:26 CET 2019


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   4   
   in repository xfce/xfce4-panel.

commit 9312580b92190fe6adcf197dab41cccce46eb972
Author: Hudd <haddayn at gmail.com>
Date:   Mon Dec 23 16:59:53 2019 +0300

    tasklist: Fix drag&drop in deskbar mode (Bug #16298)
    
    The previous if statement mixed horizontal and deskbar behavior (by
    checking for a vertical panel). As the DnD sort order is the same in
    vertical and deskbar, it should instead distinguish horizontal from
    non-horizontal.
---
 plugins/tasklist/tasklist-widget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 426089f..653c299 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -3373,8 +3373,8 @@ xfce_tasklist_button_drag_data_received (GtkWidget         *button,
   sibling = g_list_find (tasklist->windows, child2);
   panel_return_if_fail (sibling != NULL);
 
-  if ((!xfce_tasklist_vertical (tasklist) && x >= allocation.width / 2)
-      || (xfce_tasklist_vertical (tasklist) && y >= allocation.height / 2))
+  if ((xfce_tasklist_horizontal (tasklist) && x >= allocation.width / 2)
+      || (!xfce_tasklist_horizontal (tasklist) && y >= allocation.height / 2))
     sibling = g_list_next (sibling);
 
   xid = *((gulong *) gtk_selection_data_get_data (selection_data));

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


More information about the Xfce4-commits mailing list