summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authoroga <oga>2008-03-22 15:09:45 +0000
committeroga <oga>2008-03-22 15:09:45 +0000
commit36c1aac90f7253ba173ebedf1ed76fb743c8f828 (patch)
tree8df4568b3453bab4b10fcd0f96d3d9bea2320650 /xevents.c
parentcd46788d85428b539975d8923549bc282eb1b68d (diff)
downloadcwm-36c1aac90f7253ba173ebedf1ed76fb743c8f828.tar.gz
cwm-36c1aac90f7253ba173ebedf1ed76fb743c8f828.tar.xz
cwm-36c1aac90f7253ba173ebedf1ed76fb743c8f828.zip
Rip out, burn, and dance around the grave of group-edit mode.
I've yet to speak to anyone who uses it, so just kill it.

You can still add/remove from groups using the mouse binding.  Groups
may get a re-work sometime soon if i have a stroke of genius.

knocks about 4k off the i386 binary for me.

ok okan@, todd@.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/xevents.c b/xevents.c
index e683d11..0729b49 100644
--- a/xevents.c
+++ b/xevents.c
@@ -330,7 +330,7 @@ xev_handle_buttonpress(struct xevent *xev, XEvent *ee)
 
 	switch (e->button) {
 	case Button1:
-		if (altcontrol && !Groupmode)
+		if (altcontrol)
 			group_sticky_toggle_enter(cc);
 		else {
 			grab_drag(cc);
@@ -338,13 +338,8 @@ xev_handle_buttonpress(struct xevent *xev, XEvent *ee)
 		}
 		break;
 	case Button2:
-		/* XXXSIGH!!! */
-		if (Groupmode)
-			group_click(cc);
-		else {
-			grab_sweep(cc);
-			client_resize(cc);
-		}
+		grab_sweep(cc);
+		client_resize(cc);
 		break;
 	case Button3:
 		client_ptrsave(cc);
@@ -360,7 +355,7 @@ xev_handle_buttonrelease(struct xevent *xev, XEvent *ee)
 {
 	struct client_ctx *cc = client_current();
 
-	if (cc != NULL && !Groupmode)
+	if (cc != NULL)
 		group_sticky_toggle_exit(cc);
 
 	xev_register(xev);
@@ -394,9 +389,6 @@ xev_handle_keypress(struct xevent *xev, XEvent *ee)
 			break;
         }
 
-	if (kb == NULL && e->window == screen_current()->groupwin)
-		group_display_keypress(e->keycode);
-
 	if (kb == NULL)
 		goto out;
 
@@ -510,15 +502,11 @@ void
 xev_handle_expose(struct xevent *xev, XEvent *ee)
 {
 	XExposeEvent *e = &ee->xexpose;
-	struct screen_ctx *sc = screen_current();
 	struct client_ctx *cc;
 
 	if ((cc = client_find(e->window)) != NULL)
 		client_draw_border(cc);
 
-	if (sc->groupwin == e->window)
-		group_display_draw(sc);
-
 	xev_register(xev);
 }