changeset: 124:d8df7d655919
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Wed Oct 28 20:09:53 2009 +0100
files: config.mk tabbed.c
description:
Handling maprequest. that means tabbed works for xterm.
diff -r acd655add87c -r d8df7d655919 config.mk
--- a/config.mk Wed Oct 28 12:09:37 2009 +0100
+++ b/config.mk Wed Oct 28 20:09:53 2009 +0100
@@ -13,9 +13,9 @@
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
-#LDFLAGS = ${LIBS}
+CFLAGS = -g -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+#LDFLAGS = -s ${LIBS}
+LDFLAGS = ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
diff -r acd655add87c -r d8df7d655919 tabbed.c
--- a/tabbed.c Wed Oct 28 12:09:37 2009 +0100
+++ b/tabbed.c Wed Oct 28 20:09:53 2009 +0100
@@ -111,6 +111,7 @@
static void keypress(const XEvent *e);
static void killclient(const Arg *arg);
static void manage(Window win);
+static void maprequest(const XEvent *e);
static void move(const Arg *arg);
static void propertynotify(const XEvent *e);
static void resize(Client *c, int w, int h);
@@ -139,6 +140,7 @@
[Expose] = expose,
[FocusIn] = focusin,
[KeyPress] = keypress,
+ [MapRequest] = maprequest,
[PropertyNotify] = propertynotify,
};
static int bh, wx, wy, ww, wh;
@@ -582,6 +584,14 @@
}
void
+maprequest(const XEvent *e) {
+ const XMapRequestEvent *ev = &e->xmaprequest;
+
+ if(!getclient(ev->window))
+ manage(ev->window);
+}
+
+void
move(const Arg *arg) {
int i;
Client *c;
Received on Wed Oct 28 2009 - 19:10:00 UTC
This archive was generated by hypermail 2.2.0 : Wed Oct 28 2009 - 19:12:06 UTC