wmfs: Typo & cosmetic

This commit is contained in:
Martin Duquesnoy
2008-11-23 16:32:09 +01:00
parent 61241a3509
commit 0965e049d1
5 changed files with 11 additions and 7 deletions

View File

@@ -509,10 +509,8 @@ init_conf(void)
keys[j].cmd = (!strdup(var_to_str((cfg_getstr(cfgtmp, "cmd"))))
? NULL : strdup(var_to_str(cfg_getstr(cfgtmp, "cmd"))));
}
cfg_free(cfg);
// cfg_free(cfg);
cfg_free(cfgtmp);
return;
}

View File

@@ -39,7 +39,8 @@ infobar_init(void)
{
int i, j = 0;
infobar = emalloc(1, sizeof(InfoBar));
if(!infobar)
infobar = emalloc(1, sizeof(InfoBar));
infobar->geo.height = font->height * 1.5;
infobar->geo.y = (conf.bartop) ? 0 : MAXH - infobar->geo.height;
@@ -157,6 +158,7 @@ void
uicb_infobar_togglepos(uicb_t cmd)
{
conf.bartop = !conf.bartop;
if(conf.bartop)
sgeo.y = infobar->geo.height + TBARH;
else

View File

@@ -216,6 +216,7 @@ void
uicb_mouse_move(uicb_t cmd)
{
CHECK(sel);
mouse_move(sel);
return;
@@ -228,6 +229,7 @@ void
uicb_mouse_resize(uicb_t cmd)
{
CHECK(sel);
mouse_resize(sel);
return;

View File

@@ -49,7 +49,7 @@ errorhandler(Display *d, XErrorEvent *event)
/* Ignore focus change error for unmapped client */
if((c = client_gb_win(event->resourceid))
&& c->unmapped
&& event->request_code == 42)
&& event->request_code == 42) /* 42: X_SetInputFocus (Xproto.h) */
return 0;
@@ -199,6 +199,9 @@ scan(void)
return;
}
/** Reload the WMFS with the new configuration
* file changement *TESTING*
*/
void
uicb_reload(uicb_t cmd)
{

View File

@@ -68,7 +68,7 @@
#define MAXW DisplayWidth(dpy, screen)
#define SHADH 1
#define SHADC 0x000000
#define SHADC 0x000000 /* 'Cause i don't know how darken a color yet */
#define BORDH conf.client.borderheight
#define TBARH conf.titlebar.height
#define FRAMEW(w) w + BORDH * 2
@@ -106,7 +106,6 @@ void infobar_destroy(void);
void uicb_infobar_togglepos(uicb_t cmd);
/* client.c */
int client_pertag(int tag);
void client_attach(Client *c);
void client_configure(Client *c);
void client_detach(Client *c);