mirror of
https://github.com/0intro/wmii
synced 2025-01-23 18:42:09 +03:00
added Gimp and xmms as default broken apps to wmiirc, allowing ~-only in /def/class indicating that the client is handled as floating client, regardless the tag
This commit is contained in:
parent
7c44cba3ce
commit
e2298f7187
@ -18,7 +18,6 @@ alloc_area(Tag *t)
|
||||
update_area_geometry(a);
|
||||
t->area = (Area **)cext_array_attach((void **)t->area, a, sizeof(Area *), &t->areasz);
|
||||
t->sel = t->narea;
|
||||
fprintf(stderr, "alloc_area: t->sel == %d\n", t->sel);
|
||||
t->narea++;
|
||||
return a;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ focus_client(Client *c)
|
||||
}
|
||||
|
||||
void
|
||||
map_client(Client * c)
|
||||
map_client(Client *c)
|
||||
{
|
||||
XSelectInput(dpy, c->win, CLIENT_MASK & ~StructureNotifyMask);
|
||||
XMapRaised(dpy, c->win);
|
||||
@ -118,7 +118,7 @@ map_client(Client * c)
|
||||
}
|
||||
|
||||
void
|
||||
unmap_client(Client * c)
|
||||
unmap_client(Client *c)
|
||||
{
|
||||
ungrab_mouse(c->win, AnyModifier, AnyButton);
|
||||
XSelectInput(dpy, c->win, CLIENT_MASK & ~StructureNotifyMask);
|
||||
@ -331,6 +331,8 @@ manage_client(Client *c)
|
||||
|
||||
t = ntag ? tag[sel] : alloc_tag(def.tag);
|
||||
cext_strlcat(c->tags, tc && strlen(tc->tags) ? tc->tags : t->name, sizeof(c->tags));
|
||||
if(!strncmp(c->tags, "~", 2)) /* allows ~ predefinition to only set specific TClass'es floating */
|
||||
cext_strlcat(c->tags, t->name, sizeof(c->tags));
|
||||
update_tags();
|
||||
|
||||
/* shorthand proposed by Georg Neis */
|
||||
|
@ -223,6 +223,8 @@ update_tags()
|
||||
t = tags[k];
|
||||
if(*t == '~')
|
||||
t++;
|
||||
if(!*t) /* should not happen, but some user might try */
|
||||
continue;
|
||||
if(!has_tag(newctag, t, nnewctag)) {
|
||||
newctag = (char **)cext_array_attach((void **)newctag, strdup(t),
|
||||
sizeof(char *), &newctagsz);
|
||||
|
@ -32,6 +32,11 @@ xwrite /def/snap 20
|
||||
xwrite /def/font $WMII_FONT
|
||||
xwrite /def/selcolors $WMII_SELCOLORS
|
||||
xwrite /def/normcolors $WMII_NORMCOLORS
|
||||
# some broken apps:
|
||||
wmir create /def/class/'Gimp:*'
|
||||
xwrite /def/class/'Gimp:*' `~`
|
||||
wmir create /def/class/'xmms:*'
|
||||
xwrite /def/class/'xmms:*' `~`
|
||||
|
||||
# BAR CONFIGURATION
|
||||
wmiir create /bar/foo
|
||||
|
Loading…
Reference in New Issue
Block a user