[Xfce4-commits] <xfce4-panel:master> Tasklist: Avoid unneeded dnd actions.

Nick Schermer noreply at xfce.org
Tue Jun 21 19:50:01 CEST 2011


Updating branch refs/heads/master
         to faab6b6f15eb17226e37402fbc9b09d17f20a0c1 (commit)
       from b4a9628fc510db15532d748b7e30cd7e29e6ac9e (commit)

commit faab6b6f15eb17226e37402fbc9b09d17f20a0c1
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Jun 21 19:47:41 2011 +0200

    Tasklist: Avoid unneeded dnd actions.

 plugins/tasklist/tasklist-widget.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 30e0100..d0cf053 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2934,7 +2934,9 @@ xfce_tasklist_button_drag_data_received (GtkWidget         *button,
     {
       child = li->data;
 
-      if (sibling != li
+      if (sibling != li /* drop on end previous button */
+          && child != child2 /* drop on the same button */
+          && g_list_next (li) != sibling /* drop start of next button */
           && child->window != NULL
           && wnck_window_get_xid (child->window) == xid)
         {



More information about the Xfce4-commits mailing list