aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-11-22 19:39:37 +0100
committerThomas White <taw@bitwiz.org.uk>2011-11-22 19:39:37 +0100
commit096fb6d129ded7b7f72bc5b36c932fd84d45ed22 (patch)
tree4f5401f6af7e7decb2a41a9aacb140354b45918b
parent9716e325a49b26b458f684fe536e67f29f8d873b (diff)
Fix dragging logic
-rw-r--r--src/tool_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_select.c b/src/tool_select.c
index ca537e1..d522000 100644
--- a/src/tool_select.c
+++ b/src/tool_select.c
@@ -69,7 +69,7 @@ static void click_select(struct presentation *p, struct toolinfo *tip,
*drag_status = DRAG_STATUS_COULD_DRAG;
*drag_reason = DRAG_REASON_TOOL;
- ti->drag_reason = SELECT_DRAG_REASON_MOVE;
+ ti->drag_reason = SELECT_DRAG_REASON_POTENTIAL_MOVE;
}
@@ -102,7 +102,7 @@ static void drag(struct toolinfo *tip, struct presentation *p,
{
struct select_toolinfo *ti = (struct select_toolinfo *)tip;
- if ( ti->drag_reason != SELECT_DRAG_REASON_POTENTIAL_MOVE ) {
+ if ( ti->drag_reason == SELECT_DRAG_REASON_POTENTIAL_MOVE ) {
ti->drag_reason = SELECT_DRAG_REASON_MOVE;
}