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
|
ass="w"> = waw - mpx; for(i = 0, c = clients; c; c = c->next) if(isvisible(c)) { if(c->isfloat) { resize(c, True, TopLeft); continue; } c->ismax = False; c->x = wax; c->y = way; if(n == 1) { /* only 1 window */ c->w = waw - 2 * BORDERPX; c->h = wah - 2 * BORDERPX; } else if(i == 0) { /* master window */ c->w = mpx - 2 * BORDERPX; c->h = wah - 2 * BORDERPX; th = wah / (n - 1); } else { /* tile window */ c->x += mpx; c->w = stackw - 2 * BORDERPX; if(th > bh) { c->y += (i - 1) * th; c->h = th - 2 * BORDERPX; } else /* fallback if th < bh */ c->h = wah - 2 * BORDERPX; } resize(c, False, TopLeft); i++; } else ban(c); if(!sel || !isvisible(sel)) { for(c = stack; c && !isvisible(c); c = c->snext); focus(c); } restack(); } void focusnext(Arg *arg) { Client *c; if(!sel) return; if(!(c = getnext(sel->next))) c = getnext(clients); if(c) { focus(c); restack(); } } void focusprev(Arg *arg) { Client *c; if(!sel) return; if(!(c = getprev(sel->prev))) { for(c = clients; c && c->next; c = c->next); c = getprev(c); } if(c) { focus(c); restack(); } } Bool isvisible(Client *c) { unsigned int i; for(i = 0; i < ntags; i++) if(c->tags[i] && seltag[i]) return True; return False; } void resizemaster(Arg *arg) { if(arg->i == 0) master = MASTER; else { if(master + arg->i > 950 || master + arg->i < 50) return; master += arg->i; } arrange(); } void restack(void) { Client *c; XEvent ev; if(!sel) { drawstatus(); return; } if(sel->isfloat || arrange == dofloat) { XRaiseWindow(dpy, sel->win); XRaiseWindow(dpy, sel->twin); } if(arrange != dofloat) { if(!sel->isfloat) { XLowerWindow(dpy, sel->twin); XLowerWindow(dpy, sel->win); } for(c = nexttiled(clients); c; c = nexttiled(c->next)) { if(c == sel) continue; XLowerWindow(dpy, c->twin); XLowerWindow(dpy, c->win); } } drawall(); XSync(dpy, False); while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } void togglefloat(Arg *arg) { if (!sel || arrange == dofloat) return; sel->isfloat = !sel->isfloat; arrange(); } void togglemode(Arg *arg) { arrange = (arrange == dofloat) ? dotile : dofloat; if(sel) arrange(); else drawstatus(); } void toggleview(Arg *arg) { unsigned int i; seltag[arg->i] = !seltag[arg->i]; for(i = 0; i < ntags && !seltag[i]; i++); if(i == ntags) seltag[arg->i] = True; /* cannot toggle last view */ arrange(); } void view(Arg *arg) { unsigned int i; for(i = 0; i < ntags; i++) seltag[i] = (arg->i == -1) ? True : False; if(arg->i >= 0 && arg->i < ntags) seltag[arg->i] = True; arrange(); } void zoom(Arg *arg) { unsigned int n; Client *c; if(!sel) return; if(sel->isfloat || (arrange == dofloat)) { togglemax(sel); return; } for(n = 0, c = clients; c; c = c->next) if(isvisible(c) && !c->isfloat) n++; if(n < 2 || (arrange == dofloat)) return; if((c = sel) == nexttiled(clients)) if(!(c = nexttiled(c->next))) return; detach(c); if(clients) clients->prev = c; c->next = clients; clients = c; focus(c); arrange(); }