diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/WorkspaceCmd.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index ef7d992..7a8bbc4 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -125,8 +125,10 @@ bool SomeCmd::execute() { | |||
125 | WinClient *client = dynamic_cast<WinClient *>(*it); | 125 | WinClient *client = dynamic_cast<WinClient *>(*it); |
126 | if (!client) continue; | 126 | if (!client) continue; |
127 | WindowCmd<void>::setClient(client); | 127 | WindowCmd<void>::setClient(client); |
128 | if (m_cmd->execute()) | 128 | if (m_cmd->execute()) { |
129 | WindowCmd<void>::setClient(old); | ||
129 | return true; | 130 | return true; |
131 | } | ||
130 | } | 132 | } |
131 | WindowCmd<void>::setClient(old); | 133 | WindowCmd<void>::setClient(old); |
132 | } | 134 | } |
@@ -146,8 +148,10 @@ bool EveryCmd::execute() { | |||
146 | WinClient *client = dynamic_cast<WinClient *>(*it); | 148 | WinClient *client = dynamic_cast<WinClient *>(*it); |
147 | if (!client) continue; | 149 | if (!client) continue; |
148 | WindowCmd<void>::setClient(client); | 150 | WindowCmd<void>::setClient(client); |
149 | if (!m_cmd->execute()) | 151 | if (!m_cmd->execute()) { |
152 | WindowCmd<void>::setClient(old); | ||
150 | return false; | 153 | return false; |
154 | } | ||
151 | } | 155 | } |
152 | WindowCmd<void>::setClient(old); | 156 | WindowCmd<void>::setClient(old); |
153 | } | 157 | } |