aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authoroga2009-12-14 16:39:01 +0000
committeroga2009-12-14 16:39:01 +0000
commit43facbcfdbfdb0b3d82e353f16830a9dfd9170a2 (patch)
treeea58e1ea71f0f3e5966425947676de40a327b3be /group.c
parent7a6ee251e12824ed1a8e974ad238c9e7023b4a0d (diff)
downloadcwm-43facbcfdbfdb0b3d82e353f16830a9dfd9170a2.tar.gz
kill _CWM_GRP atom setting. The netwm stuff does us well enough now that
it's superfluous. ok okan@
Diffstat (limited to '')
-rw-r--r--group.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/group.c b/group.c
index 1554b31..cd996ed 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.38 2009/12/11 17:55:42 oga Exp $
+ * $Id: group.c,v 1.39 2009/12/14 16:39:01 oga Exp $
*/
#include "headers.h"
@@ -50,9 +50,6 @@ group_add(struct group_ctx *gc, struct client_ctx *cc)
if (cc->group != NULL)
TAILQ_REMOVE(&cc->group->clients, cc, group_entry);
- XChangeProperty(X_Dpy, cc->win, _CWM_GRP, XA_STRING,
- 8, PropModeReplace, shortcut_to_name[gc->shortcut],
- strlen(shortcut_to_name[gc->shortcut]));
XChangeProperty(X_Dpy, cc->win, _NET_WM_DESKTOP, XA_CARDINAL,
32, PropModeReplace, (unsigned char *)&no, 1);
@@ -68,9 +65,6 @@ group_remove(struct client_ctx *cc)
if (cc == NULL || cc->group == NULL)
errx(1, "group_remove: a ctx is NULL");
- XChangeProperty(X_Dpy, cc->win, _CWM_GRP, XA_STRING, 8,
- PropModeReplace, shortcut_to_name[0],
- strlen(shortcut_to_name[0]));
XChangeProperty(X_Dpy, cc->win, _NET_WM_DESKTOP, XA_CARDINAL,
32, PropModeReplace, (unsigned char *)&no, 1);
@@ -418,9 +412,8 @@ group_autogroup(struct client_ctx *cc)
struct screen_ctx *sc = cc->sc;
struct autogroupwin *aw;
struct group_ctx *gc;
- int no = -1, i;
+ int no = -1;
long *grpno;
- unsigned char *grpstr = NULL;
if (cc->app_class == NULL || cc->app_name == NULL)
return;
@@ -433,14 +426,6 @@ group_autogroup(struct client_ctx *cc)
else
no = *grpno + 1;
XFree(grpno);
- } else if (xu_getprop(cc, _CWM_GRP, XA_STRING,
- (CALMWM_MAXNAMELEN - 1)/sizeof(long), &grpstr) > 0) {
- for (i = 0; i < sizeof(shortcut_to_name) /
- sizeof(shortcut_to_name[0]); i++) {
- if (strcmp(shortcut_to_name[i], grpstr) == 0)
- no = i;
- }
- XFree(grpstr);
} else {
TAILQ_FOREACH(aw, &Conf.autogroupq, entry) {
if (strcmp(aw->class, cc->app_class) == 0 &&