summary refs log tree commit diff
diff options
context:
space:
mode:
authorsthen <sthen>2009-05-19 12:49:37 +0000
committersthen <sthen>2009-05-19 12:49:37 +0000
commit8bbc376fd9c46218563b1927fc900ccb2aaa5390 (patch)
tree4b3d5dce07f402d018db03dab19fab8661bf9d07
parent2c29a1de65d9b1a752e1090ab3192ed5edf7afc8 (diff)
downloadcwm-8bbc376fd9c46218563b1927fc900ccb2aaa5390.tar.gz
cwm-8bbc376fd9c46218563b1927fc900ccb2aaa5390.tar.xz
cwm-8bbc376fd9c46218563b1927fc900ccb2aaa5390.zip
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@
-rw-r--r--group.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/group.c b/group.c
index 4d25c9f..034ae6a 100644
--- a/group.c
+++ b/group.c
@@ -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);
 }