summary refs log tree commit diff stats
path: root/lib/system.nim
}; struct Client { char name[256]; char *tags[TLast]; int proto; int x, y, w, h; int tx, ty, tw, th; /* title */ int basew, baseh, incw, inch, maxw, maxh, minw, minh; int grav; unsigned int border; long flags; Bool isfloat; Client *next; Client *revert; Window win; Window title; }; extern char *tags[TLast], stext[1024]; extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; extern void (*handler[LASTEvent])(XEvent *); extern void (*arrange)(Arg *); extern Atom wmatom[WMLast], netatom[NetLast]; extern Bool running, issel; extern Client *clients, *sel; extern Cursor cursor[CurLast]; extern DC dc; extern Display *dpy; extern Window root, barwin; /* client.c */ extern void ban(Client *c); extern void focus(Client *c); extern void focusnext(Arg *arg); extern void focusprev(Arg *arg); extern Client *getclient(Window w); extern Client *getctitle(Window w); extern void gravitate(Client *c, Bool invert); extern void higher(Client *c); extern void killclient(Arg *arg); extern void lower(Client *c); extern void manage(Window w, XWindowAttributes *wa); extern void maximize(Arg *arg); extern void pop(Client *c); extern void resize(Client *c, Bool inc, Corner sticky); extern void setsize(Client *c); extern void settitle(Client *c); extern void unmanage(Client *c); extern void zoom(Arg *arg); /* draw.c */ extern void drawall(); extern void drawstatus(); extern void drawtitle(Client *c); extern unsigned long getcolor(const char *colstr); extern void setfont(const char *fontstr); extern unsigned int textw(char *text); /* event.c */ extern void grabkeys(); /* main.c */ extern int getproto(Window w); extern void quit(Arg *arg); extern void sendevent(Window w, Atom a, long value); extern int xerror(Display *dsply, XErrorEvent *ee); /* tag.c */ extern void appendtag(Arg *arg); extern void dofloat(Arg *arg); extern void dotile(Arg *arg); extern Client *getnext(Client *c, unsigned int t); extern void heretag(Arg *arg); extern void replacetag(Arg *arg); extern void settags(Client *c); extern void view(Arg *arg); /* util.c */ extern void *emallocz(unsigned int size); extern void eprint(const char *errstr, ...); extern void spawn(Arg *arg);
Commit message (Expand)AuthorAgeFilesLines
...
* fixes #6710Andreas Rumpf2017-11-081-1/+1
* make 'nim doc2 system.nim' work againAndreas Rumpf2017-11-071-2/+2
* make tests green againAndreas Rumpf2017-11-071-0/+7
* breaking change: countup/'..' only take a simple generic TAndreas Rumpf2017-11-071-1/+9
* Merge branch 'devel' into araqAndreas Rumpf2017-11-071-5/+7
|\
| * fixes #6692Araq2017-11-051-3/+5
| * fixes #6675Andreas Rumpf2017-11-021-2/+2
* | make countup et al take only a single type parameter in order to prevent type...Andreas Rumpf2017-11-021-32/+70
* | wipAndreas Rumpf2017-11-021-3/+3
|/
* Extend description of fmWriteSimon Krauter2017-11-011-1/+1
* system.'..<' should not be dirty; fixes yet another regressionAndreas Rumpf2017-11-011-1/+1
* system.nim improvement: make 'len' work with heterogenous slicesAndreas Rumpf2017-11-011-1/+1
* system.nim improvements: make contains for HSlice more flexible; added .inlin...Andreas Rumpf2017-11-011-9/+10
* Implementation of high/low for SomeReal (#6570)Fabian Keller2017-10-301-0/+3
* fixes #6631Andreas Rumpf2017-10-301-17/+19
* system.nim: typoAndreas Rumpf2017-10-291-3/+3
* remove old implementation of the roof operator; make tests green again; close...Andreas Rumpf2017-10-291-1/+1
* work in progress: new implementation for 'a[^1]'Andreas Rumpf2017-10-291-51/+48
* deprecated unary '<'Andreas Rumpf2017-10-291-34/+37
* destructors: work in progressAraq2017-10-261-2/+2
* default '=sink' and '=destroy' cannot be templatesAraq2017-10-251-9/+9
* No implicit quit for Genode (#6515)Emery Hemingway2017-10-251-1/+2
* destructors: preparations for upcoming changesAraq2017-10-171-0/+7
* Merge branch 'stringify-array' of https://github.com/krux02/Nim into krux02-s...Andreas Rumpf2017-10-091-18/+27
|\
| * don't filter '\0' characters in string generationArne Döring2017-08-071-6/+1
| * prevent null characters in $ on collections of charArne Döring2017-07-241-1/+8
| * removed newString proc again, reverted some unnecesary changesArne Döring2017-07-241-15/+0
| * remove $ for ptr/ref, prefer using string over array of charArne Döring2017-07-241-18/+12
| * arrays can now be printedArne Döring2017-07-241-18/+46
* | fixes to allow the usage of clang on windows with the msvc abi and ms headers...Charlie Barto2017-10-091-1/+1
* | system.nim: doc comment fixAndreas Rumpf2017-10-061-2/+2
* | Fix node quit (#6444)Alexander Ivanov2017-09-281-0/+4
* | first steps of making 'opt' a first class type for NimAndreas Rumpf2017-09-251-0/+3
* | Merge branch 'devel' into araq-better-codegenAndreas Rumpf2017-09-231-1/+1
|\ \
| * | Array typedesc len (#6032)ephja2017-09-171-1/+1
* | | preparations for string optimizationsAndreas Rumpf2017-09-221-3/+7
|/ /
* | Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2017-09-161-1/+2
|\ \
| * | balance Genode CPU pinning, deadlock at Genode exit (#6317)Emery Hemingway2017-09-161-1/+2
* | | development version is oddAndreas Rumpf2017-09-151-5/+5
|/ /
* | Document inclusiveness of Slices (#6362)superfunc2017-09-151-0/+15
* | version update: 0.17.2Araq2017-09-061-1/+1