[Xfce4-commits] <xfce4-panel:master> Send drag motion event to parent widgets.

Nick Schermer noreply at xfce.org
Tue Dec 14 21:54:02 CET 2010


Updating branch refs/heads/master
         to c23eba4c6da055be2f52582ebe28d427dcaa66fe (commit)
       from 11512193ee0ac31fa82b5d2264eebc097b7c81f4 (commit)

commit c23eba4c6da055be2f52582ebe28d427dcaa66fe
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Dec 14 21:50:06 2010 +0100

    Send drag motion event to parent widgets.

 plugins/tasklist/tasklist-widget.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 5e50f86..4b30903 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -1732,10 +1732,6 @@ xfce_tasklist_child_drag_motion (XfceTasklistChild *child,
 {
   panel_return_val_if_fail (XFCE_IS_TASKLIST (child->tasklist), FALSE);
 
-  if (!GTK_WIDGET_IS_SENSITIVE (child->button)
-      || !GTK_WIDGET_PARENT_SENSITIVE (child->button))
-    return FALSE;
-
   child->motion_timestamp = timestamp;
   if (child->motion_timeout_id == 0
       && !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (child->button)))
@@ -1748,7 +1744,8 @@ xfce_tasklist_child_drag_motion (XfceTasklistChild *child,
   /* keep emitting the signal */
   gdk_drag_status (context, 0, timestamp);
 
-  return TRUE;
+  /* also send drag-motion to other widgets */
+  return FALSE;
 }
 
 



More information about the Xfce4-commits mailing list