diff options
-rw-r--r-- | plugins/scale/src/scale.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/scale/src/scale.cpp b/plugins/scale/src/scale.cpp index 6939aa4..4caa69f 100644 --- a/plugins/scale/src/scale.cpp +++ b/plugins/scale/src/scale.cpp @@ -908,9 +908,6 @@ PrivateScaleScreen::scaleTerminate (CompAction *action, Window xid; - action->setState (action->state () & ~(CompAction::StateTermKey | - CompAction::StateTermButton)); - if (ss->priv->actionShouldToggle (action, state)) return false; @@ -967,6 +964,9 @@ PrivateScaleScreen::scaleTerminate (CompAction *action, ss->priv->cScreen->damageScreen (); } + if (state & CompAction::StateInitKey) + action->setState (action->state () | CompAction::StateTermKey); + ss->priv->lastActiveNum = 0; return false; |