about summary refs log tree commit diff stats
path: root/dwm.h
Commit message (Collapse)AuthorAgeFilesLines
* reverted accidental removal of sx, syAnselm R. Garbe2007-02-211-1/+1
|
* removed some global vars which should be static insteadAnselm R. Garbe2007-02-211-2/+2
|
* moved focus{next,prev} and nexttiled from client.c to layout.c (because ↵Anselm R. Garbe2007-02-211-4/+4
| | | | those are not client-specific), moved toggleversatile() from layout.c to client.c (because those are client-specific)
* fixed quoting and a comment 3.6Anselm R. Garbe2007-02-211-1/+1
|
* added draw.c again (except getcolor and setfont which are helpers in main.c)Anselm R. Garbe2007-02-201-4/+6
|
* separating drawsquare from drawtext, made drawtext externAnselm R. Garbe2007-02-201-0/+2
|
* split screen.c into layout.c and tag.c (because the view is an implicit ↵Anselm R. Garbe2007-02-201-8/+10
| | | | mixture of both)
* replaced togglelayout with setlayoutAnselm R. Garbe2007-02-191-1/+1
|
* renamed Client->versatile and Rule->versatile into Client->isversatile resp. ↵Anselm R. Garbe2007-02-191-1/+1
| | | | Rule->isversatile
* renames swim[ming] into versatileAnselm R. Garbe2007-02-191-3/+3
|
* renamed floating into swimming (this does not clash with C naming ↵Anselm R. Garbe2007-02-191-4/+3
| | | | conventions and fits better the fish symbol) - also in man page
* introduced Layout structAnselm R. Garbe2007-02-191-7/+12
|
* forgot an extern declarationAnselm R. Garbe2007-02-191-1/+1
|
* removed procevent, more refactoringAnselm R. Garbe2007-02-191-1/+0
|
* draw.c is useless (belongs to main.c now)Anselm R. Garbe2007-02-191-8/+3
|
* renamed view.c into screen.cAnselm R. Garbe2007-02-191-6/+4
|
* renamed manage.c to view.cAnselm R. Garbe2007-02-191-7/+7
|
* merged tag.c, view.c and tile.c to manage.cAnselm R. Garbe2007-02-191-21/+15
|
* some more refactoringAnselm R. Garbe2007-02-191-5/+5
|
* added some new convenience functionsAnselm R. Garbe2007-02-191-1/+4
|
* introduced tile.c, some refactoring of functionsAnselm R. Garbe2007-02-191-5/+8
|
* removed ugly ban(), extended resize() that it only resets the size if ↵Anselm R. Garbe2007-02-161-2/+2
| | | | necessary, added border_width commit to manage()
* removed getnext/getprev, redundantAnselm R. Garbe2007-02-161-2/+0
|
* added ban() which takes care than a banned window is not banned again... ↵Anselm R. Garbe2007-02-141-1/+2
| | | | (this reduces the overall ConfigureNotify's to clients)
* replaced getproto with a saner function, now old-school artifacts of WM ↵Anselm R. Garbe2007-02-071-5/+2
| | | | times in the early 90s completely disappeared, no punned pointer warning anymore ;)
* implemented aspect ratio support of windowsAnselm R. Garbe2007-02-061-0/+1
|
* handling WM_STATE seems to make DnD in gtk/qt apps working, well let's ↵Anselm R. Garbe2007-01-281-1/+1
| | | | handle this in dwm as well
* renamed activescreen into selscreen 3.2Anselm R. Garbe2007-01-231-1/+1
|
* small changesAnselm R. Garbe2007-01-231-1/+1
|
* applied Sanders all5.patch (thanks for your weekend session, Sander!)Anselm R. Garbe2007-01-221-5/+1
|
* moved BORDERPX to config.*.hAnselm R. Garbe2007-01-171-1/+0
|
* removed erealloc (not used) 3.1Anselm R. Garbe2007-01-161-1/+0
|
* removed unnecessary bx, by, bw variablesAnselm R. Garbe2007-01-161-1/+1
|
* removed drawclient and drawall (they performed useless operations/consumed ↵Anselm R. Garbe2007-01-151-2/+0
| | | | useless cpu cycles)
* implemented new color scheme accordingly to Sanders proposalAnselm R. Garbe2007-01-141-2/+1
|
* removed mode label stuffAnselm R. Garbe2007-01-141-3/+1
|
* removed client title barAnselm R. Garbe2007-01-141-5/+0
|
* reorganizedAnselm R. Garbe2007-01-081-0/+1
|
* implemented nmaster appearance in mode label (using %u)Anselm R. Garbe2007-01-081-0/+1
|
* experimental version which allows master clients being increased/decreasedAnselm R. Garbe2007-01-051-1/+3
|
* fixed comment of drawclient()Anselm R. Garbe2007-01-041-1/+1
|
* renamed drawtitle into drawclientAnselm R. Garbe2007-01-041-1/+1
|
* correctionsarg@mig292007-01-021-1/+1
|
* next version will contain updated copyright noticearg@mig292007-01-021-1/+1
|
* changed comment of updatesizehintsarg@mig292007-01-021-1/+1
|
* renamed updatesize into updatesizehints (thx to Sander for this hint)arg@mig292007-01-011-1/+1
|
* removed Client->gravarg@mig292006-12-121-1/+0
|
* removed gravitate for the momentarg@mig292006-12-111-1/+0
|
* removed viewall signature from dwm.harg@mig292006-11-301-1/+0
|
* added man page entryarg@mig292006-11-271-1/+1
|
pan class="o">&gcv); XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); } x = (h + 2) / 4; if(filledsquare) { r.x = dc.x + 1; r.y = dc.y + 1; r.width = r.height = x + 1; XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); } else if(emptysquare) { pt[0].x = dc.x + 1; pt[0].y = dc.y + 1; pt[1].x = x; pt[1].y = 0; pt[2].x = 0; pt[2].y = x; pt[3].x = -x; pt[3].y = 0; pt[4].x = 0; pt[4].y = -x; XDrawLines(dpy, dc.drawable, dc.gc, pt, 5, CoordModePrevious); } } /* extern */ void drawstatus(void) { 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], isoccupied(i)); else drawtext(tags[i], dc.norm, sel && sel->tags[i], isoccupied(i)); dc.x += dc.w; } dc.w = bmw; drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False); x = dc.x + dc.w; dc.w = textw(stext); dc.x = sw - dc.w; if(dc.x < x) { dc.x = x; dc.w = sw - x; } drawtext(stext, dc.norm, False, False); if((dc.w = dc.x - x) > bh) { dc.x = x; drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False); } XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0); XSync(dpy, False); } unsigned long getcolor(const char *colstr) { Colormap cmap = DefaultColormap(dpy, screen); XColor color; if(!XAllocNamedColor(dpy, cmap, colstr, &color, &color)) eprint("error, cannot allocate color '%s'\n", colstr); return color.pixel; } void setfont(const char *fontstr) { char *def, **missing; int i, n; missing = NULL; 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) { 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; if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) eprint("error, cannot load font: '%s'\n", fontstr); 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; }