aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorsthen2009-05-19 12:49:37 +0000
committersthen2009-05-19 12:49:37 +0000
commit6d36300cc47d0a04b0b008bcdc473617bd2935cf (patch)
tree28157495f5ba561939c19962b7830dfbfae81c83 /group.c
parent4ef1caacef8237a3f910393b3fa5e7c70cc725fb (diff)
downloadcwm-6d36300cc47d0a04b0b008bcdc473617bd2935cf.tar.gz
In movetogroup, check the window's current group and skip client_hide()
if it's the same as the active group. Was in my original movetogroup diff, but it got simplified a little too far. ok oga@
Diffstat (limited to '')
-rw-r--r--group.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/group.c b/group.c
index 5f0b416..5282200 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: group.c,v 1.29 2009/05/18 00:23:35 okan Exp $
+ * $Id: group.c,v 1.30 2009/05/19 12:49:37 sthen Exp $
*/
#include "headers.h"
@@ -152,7 +152,8 @@ group_movetogroup(struct client_ctx *cc, int idx)
if (idx < 0 || idx >= CALMWM_NGROUPS)
err(1, "group_movetogroup: index out of range (%d)", idx);
- client_hide(cc);
+ if(Group_active != &Groups[idx])
+ client_hide(cc);
group_add(&Groups[idx], cc);
}