From 0c4e90c9d4b8e02de61db4f48c49d2cf87d93fbe Mon Sep 17 00:00:00 2001 From: "Enno Boland (tox)" Date: Tue, 27 Oct 2009 12:54:22 +0100 Subject: code cleanups --- tabbed.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tabbed.c b/tabbed.c index d984e74..6cc18dc 100644 --- a/tabbed.c +++ b/tabbed.c @@ -112,7 +112,6 @@ static void killclient(const Arg *arg); static void manage(Window win); static void move(const Arg *arg); static void propertynotify(const XEvent *e); -static void reparentnotify(const XEvent *e); static void resize(Client *c, int w, int h); static void rotate(const Arg *arg); static void run(void); @@ -140,7 +139,6 @@ static void (*handler[LASTEvent]) (const XEvent *) = { [FocusIn] = focusin, [KeyPress] = keypress, [PropertyNotify] = propertynotify, - [ReparentNotify] = reparentnotify, [UnmapNotify] = unmapnotify, }; static int bh, wx, wy, ww, wh; @@ -388,8 +386,8 @@ focus(Client *c) { e.xclient.data.l[2] = XEMBED_FOCUS_CURRENT; e.xclient.data.l[3] = 0; e.xclient.data.l[4] = 0; - XSendEvent(dpy, root, False, NoEventMask, &e); - XStoreName(dpy, win, sel->name); + XSendEvent(dpy, c->win, False, NoEventMask, &e); + XStoreName(dpy, win, c->name); sel = c; drawbar(); } @@ -615,10 +613,6 @@ propertynotify(const XEvent *e) { } } -void -reparentnotify(const XEvent *e) { -} - void resize(Client *c, int w, int h) { XConfigureEvent ce; @@ -805,7 +799,6 @@ xerror(Display *dpy, XErrorEvent *ee) { fprintf(stderr, "tabbed: fatal error: request code=%d, error code=%d\n", ee->request_code, ee->error_code); return xerrorxlib(dpy, ee); /* may call exit */ - } int -- cgit v1.2.3