Merge remote branch 'github/master' into bacardi55

This commit is contained in:
bacardi55@gmail.com 2011-01-02 19:51:36 +01:00
commit 74bbf0bd04
4 changed files with 9 additions and 5 deletions

View File

@ -1233,7 +1233,8 @@ client_unmanage(Client *c)
infobar_draw(c->screen);
}
XFree(c->title);
/*XFree(c->title);*/
client_focus_next(c);

View File

@ -436,7 +436,7 @@ get_option(struct keyword **head)
while (kw && kw->type != LIST_END) {
switch (kw->type) {
case WORD:
if (j > (PARSE_MAX_LIST - 1)) {
if (j >= (PARSE_MAX_LIST - 1)) {
syntax(kw, "too much values in list");
return free_opt(o);
}

View File

@ -21,7 +21,7 @@
#include <sys/queue.h>
#define INCLUDE_CMD "@include"
#define PARSE_MAX_LIST 10
#define PARSE_MAX_LIST 32
#if defined(Bool)
#define bool_t Bool

View File

@ -61,11 +61,14 @@ tag_set(int tag)
}
else
{
if(!tag || tag == seltag[selscreen]
if(!tag || (tag == seltag[selscreen] && tag == prevseltag[selscreen])
|| tag > conf.ntag[selscreen])
return;
seltag[selscreen] = tag;
if(tag == seltag[selscreen] && tag != prevseltag[selscreen])
tag = seltag[selscreen] = prevseltag[selscreen];
else
seltag[selscreen] = tag;
}
ewmh_update_current_tag_prop();