From 6fc55e469af07c4f9d932322878807c1e666cd82 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Mon, 29 Sep 2008 01:32:31 +0200 Subject: [PATCH] [wmfs.c .h] Fix typo and remove useless stuffs --- wmfs.c | 7 +------ wmfs.h | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/wmfs.c b/wmfs.c index 2dc60e7..09e25bd 100644 --- a/wmfs.c +++ b/wmfs.c @@ -553,7 +553,6 @@ manage(Window w, XWindowAttributes *wa) Window trans; Status rettrans; XWindowChanges winc; - XSetWindowAttributes at; c = emalloc(sizeof(Client)); c->win = w; @@ -563,10 +562,6 @@ manage(Window w, XWindowAttributes *wa) c->h = wa->height; c->tag = seltag; - at.override_redirect = 1; - at.background_pixmap = ParentRelative; - at.event_mask = ButtonPressMask | ExposureMask; - /* Create titlebar & button */ if(conf.ttbarheight) { @@ -1434,7 +1429,7 @@ main(int argc,char **argv) scan(); mainloop(); - /* Exiting WMFS :'( */ + /* Exiting WMFS :'( */ XFreeFont(dpy, font); XUngrabKey(dpy, AnyKey, AnyModifier, root); XFreeCursor(dpy, cursor[CurNormal]); diff --git a/wmfs.h b/wmfs.h index a77c4dc..eb8f573 100644 --- a/wmfs.h +++ b/wmfs.h @@ -68,7 +68,7 @@ #define BUTH conf.ttbarheight - 6 #define BUTX(x, w) x + w - BUTH/400 #define TEXTW(x) XTextWidth(font, x, strlen(x)) + (fonth / 10) -#define MAXLAYOUT 3 +#define MAXLAYOUT 3 /* Client Structure */ typedef struct Client Client;