[Xfce4-commits] <xfce4-panel:master> Do not start a motion timeout if button is insensitive.
Nick Schermer
noreply at xfce.org
Sat Nov 20 22:50:01 CET 2010
Updating branch refs/heads/master
to 3edffa8dd6e622376546d0a950f1f7ccf068befd (commit)
from ae894f000b170b0f28eeb2c721de289dbfbbd785 (commit)
commit 3edffa8dd6e622376546d0a950f1f7ccf068befd
Author: Nick Schermer <nick at xfce.org>
Date: Sat Nov 20 22:01:39 2010 +0100
Do not start a motion timeout if button is insensitive.
This way the tasklist will not switch windows when moving
a panel plugin.
plugins/tasklist/tasklist-widget.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 7564767..8670d5a 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -1722,6 +1722,10 @@ 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)))
More information about the Xfce4-commits
mailing list