Cosmetic & typo

This commit is contained in:
Martin Duquesnoy
2008-11-18 20:49:54 +01:00
parent b0d42cb605
commit c49ef0524d
7 changed files with 24 additions and 14 deletions

View File

@@ -125,8 +125,7 @@ uicb_client_prev(uicb_t cmd)
if(c) if(c)
{ {
client_focus(c); client_focus(c);
if(!c->tile) client_raise(c);
client_raise(c);
} }
arrange(); arrange();
@@ -150,8 +149,7 @@ uicb_client_next(uicb_t cmd)
if(c) if(c)
{ {
client_focus(c); client_focus(c);
if(!c->tile) client_raise(c);
client_raise(c);
} }
arrange(); arrange();

View File

@@ -185,6 +185,7 @@ mouse_section(MouseBinding mb[], cfg_t *cfg, int ns)
} }
/** Configuration initialization /** Configuration initialization
* \todo Make functions for all section (tag, client, layout...)
*/ */
void void
init_conf(void) init_conf(void)
@@ -439,8 +440,8 @@ init_conf(void)
} }
} }
/* tag */ /* tag
/* if there is no tag in the conf or more than * if there is no tag in the conf or more than
* MAXTAG (32) print an error and create only one. * MAXTAG (32) print an error and create only one.
*/ */
conf.colors.tagselfg = strdup(var_to_str(cfg_getstr(cfg_tags, "sel_fg"))); conf.colors.tagselfg = strdup(var_to_str(cfg_getstr(cfg_tags, "sel_fg")));

View File

@@ -61,7 +61,6 @@ draw_text(Drawable d, int x, int y, char* fg, int pad, char *str)
XftDrawDestroy(xftd); XftDrawDestroy(xftd);
return; return;
} }

View File

@@ -239,8 +239,13 @@ grabkeys(void)
{ {
uint i, j; uint i, j;
KeyCode code; KeyCode code;
uint ml[] = {LockMask, numlockmask, scrolllockmask, numlockmask|scrolllockmask, uint ml[] = {LockMask,
LockMask|scrolllockmask, LockMask|numlockmask, LockMask|numlockmask|scrolllockmask}; numlockmask,
scrolllockmask,
numlockmask|scrolllockmask,
LockMask|scrolllockmask,
LockMask|numlockmask,
LockMask|numlockmask|scrolllockmask};
XUngrabKey(dpy, AnyKey, AnyModifier, root); XUngrabKey(dpy, AnyKey, AnyModifier, root);
for(i = 0; i < conf.nkeybind; ++i) for(i = 0; i < conf.nkeybind; ++i)
@@ -265,7 +270,8 @@ keypress(XKeyPressedEvent *ev)
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0); keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
for(i = 0; i < conf.nkeybind; ++i) for(i = 0; i < conf.nkeybind; ++i)
if(keysym == keys[i].keysym if(keysym == keys[i].keysym
&& (keys[i].mod & ~(numlockmask | LockMask)) == (ev->state & ~(numlockmask | LockMask)) && (keys[i].mod & ~(numlockmask | LockMask | scrolllockmask))
== (ev->state & ~(numlockmask | LockMask | scrolllockmask))
&& keys[i].func) && keys[i].func)
keys[i].func(keys[i].cmd); keys[i].func(keys[i].cmd);

View File

@@ -129,6 +129,8 @@ infobar_draw_taglist(void)
return; return;
} }
/** Destroy the InfoBar
*/
void void
infobar_destroy(void) infobar_destroy(void)
{ {

View File

@@ -187,9 +187,13 @@ mouse_grabbuttons(Client *c, Bool focused)
int i, j; int i, j;
uint mod = conf.client.mod; uint mod = conf.client.mod;
uint bl[] = {Button1, Button2, Button3, Button4, Button5}; uint bl[] = {Button1, Button2, Button3, Button4, Button5};
uint ml[] = {mod, mod|LockMask, mod|numlockmask, mod|scrolllockmask, uint ml[] = {mod, mod|LockMask,
mod|numlockmask|scrolllockmask, mod|LockMask|scrolllockmask, mod|numlockmask,
mod|LockMask|numlockmask,mod|LockMask|numlockmask|scrolllockmask}; mod|scrolllockmask,
mod|numlockmask|scrolllockmask,
mod|LockMask|scrolllockmask,
mod|LockMask|numlockmask,
mod|LockMask|numlockmask|scrolllockmask};
XUngrabButton(dpy, AnyButton, AnyModifier, c->win); XUngrabButton(dpy, AnyButton, AnyModifier, c->win);

View File

@@ -165,7 +165,7 @@ uicb_quit(uicb_t cmd)
return; return;
} }
/** Scan if there are window on X /** Scan if there are windows on X
* for manage it * for manage it
*/ */
void void