[hackers] [tabbed] code cleanups || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Tue, 27 Oct 2009 12:22:19 +0000 (UTC)

changeset: 115:16f6ba9bb55e
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Tue Oct 27 12:54:22 2009 +0100
files: tabbed.c
description:
code cleanups

diff -r 6d58031a147e -r 16f6ba9bb55e tabbed.c
--- a/tabbed.c Mon Oct 26 16:59:30 2009 +0100
+++ b/tabbed.c Tue Oct 27 12:54:22 2009 +0100
@@ -112,7 +112,6 @@
 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 @@
         [FocusIn] = focusin,
         [KeyPress] = keypress,
         [PropertyNotify] = propertynotify,
- [ReparentNotify] = reparentnotify,
         [UnmapNotify] = unmapnotify,
 };
 static int bh, wx, wy, ww, wh;
@@ -388,8 +386,8 @@
         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();
 }
@@ -616,10 +614,6 @@
 }
 
 void
-reparentnotify(const XEvent *e) {
-}
-
-void
 resize(Client *c, int w, int h) {
         XConfigureEvent ce;
         XWindowChanges wc;
@@ -805,7 +799,6 @@
         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
Received on Tue Oct 27 2009 - 12:22:19 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 27 2009 - 12:24:07 UTC