about summary refs log tree commit diff stats
path: root/event.c
Commit message (Collapse)AuthorAgeFilesLines
* removed TLast tag enum, now tags is simple defined as char *[] array, the ↵arg@10ksloc.org2006-08-031-1/+1
| | | | rest is calculated correctly, rules take an int array for the tags
* made fullscreen apps working fine in floating mode (there is no sane way to ↵arg@10ksloc.org2006-08-021-19/+46
| | | | 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
* new stuffarg@10ksloc.org2006-08-021-5/+2
|
* implemented focus on enterwindow on titlebarsarg@10ksloc.org2006-08-021-1/+1
|
* applied Sanders patches (numlock2)arg@10ksloc.org2006-08-021-5/+12
|
* reverting to old resize policyarg@10ksloc.org2006-08-021-10/+13
|
* new resize stuff (using XConfigureWindow instead of XSendEvent)arg@10ksloc.org2006-08-021-13/+10
|
* removed 1 missing LOCarg@10ksloc.org2006-08-011-1/+0
|
* saved 2LOCarg@10ksloc.org2006-08-011-4/+2
|
* uppercasing all define'd values (uppercase-prefixed should only be enum ↵arg@10ksloc.org2006-08-011-4/+4
| | | | field qualifiers)
* centralized/externalized configuration to config.harg@10ksloc.org2006-08-011-58/+10
|
* applied Cedric's NumLock patcharg@10ksloc.org2006-08-011-1/+17
|
* applied Jukkas prev/next patch with XK_{h,l}arg@10ksloc.org2006-08-011-0/+2
|
* applied Sanders patchesarg@10ksloc.org2006-08-011-11/+3
|
* prepared 0.5 0.5arg@10ksloc.org2006-07-211-3/+9
|
* some cleanups/fixes inspired by Jukka Salmi's feedbackarg@10ksloc.org2006-07-211-2/+2
|
* simplified main.c, switching back to single urxvt usagearg@10ksloc.org2006-07-211-1/+1
|
* applied sanders maxfix patcharg@10ksloc.org2006-07-211-2/+2
|
* sanitization of several clunky stuff, removed heretag (rarely of use), ↵arg@10ksloc.org2006-07-211-12/+11
| | | | simplified pop(), changed shortcuts to always contain MODKEY
* cleaned the CUSTOMIZE flagsarg@10ksloc.org2006-07-201-0/+2
|
* made status bar drawing more robust, implemented togglemax and togglemode, ↵arg@10ksloc.org2006-07-201-8/+3
| | | | works quite well
* cleaned up codearg@10ksloc.org2006-07-201-44/+38
|
* prepared 0.4 0.4arg@10ksloc.org2006-07-201-3/+9
|
* 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-15/+15
| | | | 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-1/+9
|
* applied Jukka's patch with s/ModKeyMask/MODKEY/garg@10ksloc.org2006-07-191-20/+20
|
* reapplied my default keybindingsarg@10ksloc.org2006-07-191-1/+10
|
* prepared 0.3arg@10ksloc.org2006-07-191-10/+1
|
* refactored Sanders code somewhatarg@10ksloc.org2006-07-191-11/+4
|
* applied Sanders resize patch, fixed lower bugarg@10ksloc.org2006-07-191-12/+27
|
* implemened distinguishing float/managed geometries of clients (works quite well)Anselm R. Garbe2006-07-181-15/+15
|
* added heretag command which allows to tag a client of a foreign tag with ↵Anselm R. Garbe2006-07-181-0/+4
| | | | current tag
* ordered variables in structs and source files alphabeticallyAnselm R. Garbe2006-07-171-18/+17
|
* several additions in mouse handling ;)Anselm R. Garbe2006-07-161-10/+26
|
* fixed XSync handling and finished man pageAnselm R. Garbe2006-07-151-3/+3
|
* changing XFlush into XSyncAnselm R. Garbe2006-07-151-1/+1
|
* sanitized other stuffAnselm R. Garbe2006-07-151-72/+69
|
* proceeded with cleaning up, sorting functions, etcAnselm R. Garbe2006-07-151-138/+128
|
* rearranged several stuffAnselm R. Garbe2006-07-151-9/+80
|
* sanitized namesAnselm R. Garbe2006-07-141-7/+7
|
* rearrangedAnselm R. Garbe2006-07-141-10/+86
|
* draw bar on exposure ;)Anselm R. Garbe2006-07-141-1/+3
|
* searching for a better way to discard enter notifiesAnselm R. Garbe2006-07-141-7/+1
|
* made barclick to select the specific tagAnselm R. Garbe2006-07-141-1/+3
|
* continued with man pageAnselm R. Garbe2006-07-141-1/+1
|
* added mini stuffAnselm R. Garbe2006-07-131-2/+5
|
* changed default colorsAnselm R. Garbe2006-07-131-1/+1
|
* removed unnecessary crapAnselm R. Garbe2006-07-131-7/+2
|
* before leaning things upAnselm R. Garbe2006-07-131-2/+2
|
* new stuff, fixed several issuesAnselm R. Garbe2006-07-121-4/+4
|
="n">GCBackground | GCFont, &gcv); XDrawImageString(dpy, b->drawable, b->gc, x, y, buf, len); } } static unsigned long xloadcolors(Display *dpy, Colormap cmap, const char *colstr) { XColor color; XAllocNamedColor(dpy, cmap, colstr, &color, &color); return color.pixel; } void loadcolors(Display *dpy, int screen, Brush *b, const char *bg, const char *fg, const char *border) { Colormap cmap = DefaultColormap(dpy, screen); b->bg = xloadcolors(dpy, cmap, bg); b->fg = xloadcolors(dpy, cmap, fg); b->border = xloadcolors(dpy, cmap, border); } unsigned int textwidth_l(Fnt *font, char *text, unsigned int len) { if(font->set) { XRectangle r; XmbTextExtents(font->set, text, len, 0, &r); return r.width; } return XTextWidth(font->xfont, text, len); } unsigned int textwidth(Fnt *font, char *text) { return textwidth_l(font, text, strlen(text)); } void loadfont(Display *dpy, Fnt *font, const char *fontstr) { char **missing, *def; int n; missing = NULL; def = "?"; setlocale(LC_ALL, ""); if(font->set) XFreeFontSet(dpy, font->set); font->set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); if(missing) { while(n--) fprintf(stderr, "missing fontset: %s\n", missing[n]); XFreeStringList(missing); if(font->set) { XFreeFontSet(dpy, font->set); font->set = NULL; } } if(font->set) { XFontSetExtents *font_extents; XFontStruct **xfonts; char **font_names; unsigned int i; font->ascent = font->descent = 0; font_extents = XExtentsOfFontSet(font->set); n = XFontsOfFontSet(font->set, &xfonts, &font_names); for(i = 0, font->ascent = 0, font->descent = 0; i < n; i++) { if(font->ascent < (*xfonts)->ascent) font->ascent = (*xfonts)->ascent; if(font->descent < (*xfonts)->descent) font->descent = (*xfonts)->descent; xfonts++; } } else { if(font->xfont) XFreeFont(dpy, font->xfont); font->xfont = NULL; font->xfont = XLoadQueryFont(dpy, fontstr); if (!font->xfont) font->xfont = XLoadQueryFont(dpy, "fixed"); if (!font->xfont) error("error, cannot load 'fixed' font\n"); font->ascent = font->xfont->ascent; font->descent = font->xfont->descent; } font->height = font->ascent + font->descent; } unsigned int labelheight(Fnt *font) { return font->height + 4; }