summaryrefslogtreecommitdiffstats
path: root/src/knot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knot.cpp')
-rw-r--r--src/knot.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/knot.cpp b/src/knot.cpp
index 8296891f4..b2f6dbe62 100644
--- a/src/knot.cpp
+++ b/src/knot.cpp
@@ -471,7 +471,9 @@ void SPKnot::updateCtrl() {
void SPKnot::_setCtrlState() {
int state = SP_KNOT_STATE_NORMAL;
- if (this->flags & SP_KNOT_DRAGGING) {
+ if (this->flags | SP_KNOT_VISIBLE) {
+ return;
+ } else if (this->flags & SP_KNOT_DRAGGING) {
state = SP_KNOT_STATE_DRAGGING;
} else if (this->flags & SP_KNOT_MOUSEOVER) {
state = SP_KNOT_STATE_MOUSEOVER;