[wmfs.c .h] Fix typo and remove useless stuffs

This commit is contained in:
Martin Duquesnoy 2008-09-29 01:32:31 +02:00
parent 56abd14f56
commit 6fc55e469a
2 changed files with 2 additions and 7 deletions

7
wmfs.c
View File

@ -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]);

2
wmfs.h
View File

@ -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;