about summary refs log tree commit diff stats
path: root/dwm.h
Commit message (Collapse)AuthorAgeFilesLines
* switched to regexp matching for Rulesarg@10ksloc.org2006-08-041-0/+1
|
* using execl now, argv changed, using cmd and const char defs directly in the ↵arg@10ksloc.org2006-08-041-1/+1
| | | | KEYS struct
* removed TLast tag enum, now tags is simple defined as char *[] array, the ↵arg@10ksloc.org2006-08-031-2/+3
| | | | rest is calculated correctly, rules take an int array for the tags
* changed Client->tags and Rule->tags to be Bool (I'll also try to remove the ↵arg@10ksloc.org2006-08-031-3/+4
| | | | TLast enum)
* removed the CONFIG variable from config.mk, renamed config.h into ↵arg@10ksloc.org2006-08-021-1/+1
| | | | config.default.h, after first clone/extract one needs to copy config.default.h to config.h, that is easier than always heavy typing make CONFIG=blafasel
* made fullscreen apps working fine in floating mode (there is no sane way to ↵arg@10ksloc.org2006-08-021-2/+2
| | | | make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
* renamed WM_PROTOCOL_DELWIN into PROTODELWINarg@10ksloc.org2006-08-011-1/+1
|
* cleaned config.*h to prevent some confusionarg@10ksloc.org2006-08-011-2/+3
|
* uppercasing all define'd values (uppercase-prefixed should only be enum ↵arg@10ksloc.org2006-08-011-2/+2
| | | | field qualifiers)
* centralized/externalized configuration to config.harg@10ksloc.org2006-08-011-20/+1
|
* applied Jukkas prev/next patch with XK_{h,l}arg@10ksloc.org2006-08-011-0/+2
|
* applied Sanders patchesarg@10ksloc.org2006-08-011-2/+6
|
* committed a patch which fixes the hints of Jukkaarg@10ksloc.org2006-08-011-1/+1
|
* sanitization of several clunky stuff, removed heretag (rarely of use), ↵arg@10ksloc.org2006-07-211-12/+10
| | | | simplified pop(), changed shortcuts to always contain MODKEY
* applied sanders no_sizehints for tiled mode patch (thx!)arg@10ksloc.org2006-07-201-1/+1
|
* using double-linked list in order to get correct prev focus handlingarg@10ksloc.org2006-07-201-1/+2
|
* cleaned the CUSTOMIZE flagsarg@10ksloc.org2006-07-201-2/+2
|
* made status bar drawing more robust, implemented togglemax and togglemode, ↵arg@10ksloc.org2006-07-201-1/+3
| | | | works quite well
* removed c->f{x,y,w,h} and c->t{x,y,w,h} in favor for the new rule handling ↵arg@10ksloc.org2006-07-201-5/+2
| | | | remembering two kinds of geometries is unnecessary, removed the randomized (x,y) setting on dofloat startup, was kind too random und unpredictable
* implemented regexp matching for rulesarg@10ksloc.org2006-07-191-17/+0
|
* applied Jukka's patch with s/ModKeyMask/MODKEY/garg@10ksloc.org2006-07-191-0/+1
|
* refactored Sanders code somewhatarg@10ksloc.org2006-07-191-2/+2
|
* applied Sanders resize patch, fixed lower bugarg@10ksloc.org2006-07-191-1/+4
|
* implemened distinguishing float/managed geometries of clients (works quite well)Anselm R. Garbe2006-07-181-2/+5
|
* pop on heretagAnselm R. Garbe2006-07-181-0/+1
|
* added heretag command which allows to tag a client of a foreign tag with ↵Anselm R. Garbe2006-07-181-1/+2
| | | | current tag
* ordered variables in structs and source files alphabeticallyAnselm R. Garbe2006-07-171-20/+18
|
* several additions in mouse handling ;)Anselm R. Garbe2006-07-161-2/+2
|
* changing XFlush into XSyncAnselm R. Garbe2006-07-151-0/+5
|
* sanitized other stuffAnselm R. Garbe2006-07-151-3/+1
|
* proceeded with cleaning up, sorting functions, etcAnselm R. Garbe2006-07-151-20/+19
|
* rearranged several stuffAnselm R. Garbe2006-07-151-14/+22
|
* sanitized namesAnselm R. Garbe2006-07-141-12/+12
|
* rearrangedAnselm R. Garbe2006-07-141-19/+12
|
* removed a bunch of lines through swap removalAnselm R. Garbe2006-07-141-2/+1
|
* searching for a better way to discard enter notifiesAnselm R. Garbe2006-07-141-6/+0
|
* implemented dwm reading status text from stdin Anselm R. Garbe2006-07-141-2/+2
|
* made barclick to select the specific tagAnselm R. Garbe2006-07-141-0/+1
|
* implemented bar for dwm (I miss status text), I plan that status text is ↵Anselm R. Garbe2006-07-141-4/+7
| | | | read from stdin in dwm
* added mini stuffAnselm R. Garbe2006-07-131-3/+6
|
* fixed several things, nearly feature completeAnselm R. Garbe2006-07-131-1/+1
|
* new stuffAnselm R. Garbe2006-07-131-8/+16
|
* several other additions/fixes, dwm is quite usable alreadyAnselm R. Garbe2006-07-131-3/+5
|
* implemented tagging a clientAnselm R. Garbe2006-07-131-11/+19
|
* added xlock command (I need it regularly)Anselm R. Garbe2006-07-131-1/+2
|
* changed default colorsAnselm R. Garbe2006-07-131-0/+136
"p">, x, y, buf, len); } else { gcv.font = dc.font.xfont->fid; XChangeGC(dpy, dc.gc, GCForeground | GCFont, &gcv); XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); } if(highlight) { r.x = dc.x + 2; r.y = dc.y + 2; r.width = r.height = 3; XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); } } /* extern */ void drawall() { Client *c; for(c = clients; c; c = getnext(c->next)) drawtitle(c); drawstatus(); } void drawstatus() { int i, x; dc.x = dc.y = 0; for(i = 0; i < ntags; i++) { dc.w = textw(tags[i]); if(seltag[i]) drawtext(tags[i], dc.sel, sel && sel->tags[i]); else drawtext(tags[i], dc.norm, sel && sel->tags[i]); dc.x += dc.w; } dc.w = bmw; drawtext(arrange == dotile ? TILESYMBOL : FLOATSYMBOL, dc.status, False); x = dc.x + dc.w; dc.w = textw(stext); dc.x = bx + bw - dc.w; if(dc.x < x) { dc.x = x; dc.w = bw - x; } drawtext(stext, dc.status, False); if((dc.w = dc.x - x) > bh) { dc.x = x; if(sel) drawtext(sel->name, dc.sel, False); else drawtext(NULL, dc.norm, False); } XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); XSync(dpy, False); } void drawtitle(Client *c) { if(c == sel && issel) { drawstatus(); XUnmapWindow(dpy, c->twin); XSetWindowBorder(dpy, c->win, dc.sel[ColBG]); return; } XSetWindowBorder(dpy, c->win, dc.norm[ColBG]); XMapWindow(dpy, c->twin); dc.x = dc.y = 0; dc.w = c->tw; drawtext(c->name, dc.norm, False); XCopyArea(dpy, dc.drawable, c->twin, dc.gc, 0, 0, c->tw, c->th, 0, 0); XSync(dpy, False); } unsigned long getcolor(const char *colstr) { Colormap cmap = DefaultColormap(dpy, screen); XColor color; XAllocNamedColor(dpy, cmap, colstr, &color, &color); return color.pixel; } void setfont(const char *fontstr) { char **missing, *def; int i, n; missing = NULL; setlocale(LC_ALL, ""); if(dc.font.set) XFreeFontSet(dpy, dc.font.set); dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); if(missing) { while(n--) fprintf(stderr, "missing fontset: %s\n", missing[n]); XFreeStringList(missing); if(dc.font.set) { XFreeFontSet(dpy, dc.font.set); dc.font.set = NULL; } } if(dc.font.set) { XFontSetExtents *font_extents; XFontStruct **xfonts; char **font_names; dc.font.ascent = dc.font.descent = 0; font_extents = XExtentsOfFontSet(dc.font.set); n = XFontsOfFontSet(dc.font.set, &xfonts, &font_names); for(i = 0, dc.font.ascent = 0, dc.font.descent = 0; i < n; i++) { if(dc.font.ascent < (*xfonts)->ascent) dc.font.ascent = (*xfonts)->ascent; if(dc.font.descent < (*xfonts)->descent) dc.font.descent = (*xfonts)->descent; xfonts++; } } else { if(dc.font.xfont) XFreeFont(dpy, dc.font.xfont); dc.font.xfont = NULL; dc.font.xfont = XLoadQueryFont(dpy, fontstr); if (!dc.font.xfont) dc.font.xfont = XLoadQueryFont(dpy, "fixed"); if (!dc.font.xfont) eprint("error, cannot init 'fixed' font\n"); dc.font.ascent = dc.font.xfont->ascent; dc.font.descent = dc.font.xfont->descent; } dc.font.height = dc.font.ascent + dc.font.descent; } unsigned int textw(const char *text) { return textnw(text, strlen(text)) + dc.font.height; }