about summary refs log tree commit diff stats
path: root/config.mk
Commit message (Expand)AuthorAgeFilesLines
* enforcing using fontsets even if they are incomplete for some encodingsarg@mig292006-12-051-1/+1
* hotfix of a serious crashing bug 2.5.1arg@mig292006-12-041-1/+1
* next version will be 2.5arg@mig292006-11-301-1/+1
* next version will be 2.4arg@mig292006-11-251-1/+1
* applied Gottox patchesarg@mig292006-11-211-1/+1
* next release will be 2.2arg@mig292006-11-031-1/+1
* applied Gottox patch to simplify the resizing of col, instead of resizing the...arg@mig292006-10-311-1/+1
* now being at v2.0Anselm R. Garbe2006-10-141-1/+1
* changing MASTER value from percent into per millAnselm R. Garbe2006-10-051-1/+1
* first step to a more flexible dotile() algorithmAnselm R. Garbe2006-09-291-1/+1
* fixing the settags issue, preparing 1.7.1 1.7.1Anselm R. Garbe2006-09-271-1/+1
* improved intro comment in dwm.h, updated config.mkarg@mmvi2006-09-201-1/+1
* small fixAnselm R. Garbe2006-09-111-1/+1
* maybe this might workAnselm R. Garbe2006-09-061-1/+1
* prepared dwm-1.4 update 1.4Anselm R. Garbe2006-09-061-1/+1
* seems to preserve floating client z-layer order (even with reorder() calls)Anselm R. Garbe2006-09-061-1/+1
* after 1.3Anselm R. Garbe2006-09-041-1/+1
* retagged 1.3Anselm R. Garbe2006-09-041-1/+1
* removed html crapAnselm R. Garbe2006-09-041-1/+1
* applied sanders patch to remove unnecessary commit()Anselm R. Garbe2006-08-311-1/+1
* changed config.arg.h - I really need the 4th tagAnselm R. Garbe2006-08-281-1/+1
* 3->4 colorsAnselm R. Garbe2006-08-241-1/+1
* applied another config.mk patch made by sanderAnselm R.Garbe2006-08-161-1/+1
* fixing small bug in config.mkAnselm R.Garbe2006-08-151-2/+2
* applied Sanders LD and resize patchesAnselm R.Garbe2006-08-141-1/+2
* upgraded version infoAnselm R.Garbe2006-08-111-1/+1
* next version is 0.8arg@10ksloc.org2006-08-071-1/+1
* using -Os again, zoom is ignored in floating mode or on floating clientsarg@10ksloc.org2006-08-051-1/+1
* no need for -g anymore, regexp matching works nowarg@10ksloc.org2006-08-041-4/+4
* switched to regexp matching for Rulesarg@10ksloc.org2006-08-041-4/+4
* fixed a type in README, and patched config.mkarg@10ksloc.org2006-08-021-1/+1
* removed the CONFIG variable from config.mk, renamed config.h into config.defa...arg@10ksloc.org2006-08-021-5/+2
* applied Sanders patches (numlock2)arg@10ksloc.org2006-08-021-7/+7
* uppercasing all define'd values (uppercase-prefixed should only be enum field...arg@10ksloc.org2006-08-011-7/+7
* centralized/externalized configuration to config.harg@10ksloc.org2006-08-011-2/+5
* applied Sanders patchesarg@10ksloc.org2006-08-011-15/+9
* s/0.5/0.6/ - my steps are wider than the realityarg@10ksloc.org2006-07-211-1/+1
* preparing 0.6 which will be available in the evening after sanders patch approx.arg@10ksloc.org2006-07-211-6/+6
* using double-linked list in order to get correct prev focus handlingarg@10ksloc.org2006-07-201-5/+5
* cleaned up codearg@10ksloc.org2006-07-201-1/+1
* using O3 instead of Os, binary size still < 40kbarg@10ksloc.org2006-07-201-1/+1
* applied Jukka's patch with s/ModKeyMask/MODKEY/garg@10ksloc.org2006-07-191-1/+1
* changed CFLAGsarg@mmvi2006-07-181-5/+5
* simplified MakefileAnselm R. Garbe2006-07-171-1/+0
* patched dwmAnselm R. Garbe2006-07-171-1/+1
* simplified man pageAnselm R. Garbe2006-07-161-1/+1
* draw bar on exposure ;)Anselm R. Garbe2006-07-141-5/+5
* prep 0.1 0.1Anselm R. Garbe2006-07-141-6/+6
* implemented dwm reading status text from stdin Anselm R. Garbe2006-07-141-5/+5
* continued with man pageAnselm R. Garbe2006-07-141-2/+5
>= 0; i-- { uid := ml.store.Uids[i] msg := ml.store.Messages[uid] if row >= ctx.Height() { break } if msg == nil { needsHeaders = append(needsHeaders, uid) ml.spinner.Draw(ctx.Subcontext(0, row, ctx.Width(), 1)) row += 1 continue } style := tcell.StyleDefault if row == ml.selected-ml.scroll { style = style.Reverse(true) } if _, ok := ml.store.Deleted[msg.Uid]; ok { style = style.Foreground(tcell.ColorGray) } ctx.Fill(0, row, ctx.Width(), 1, ' ', style) ctx.Printf(0, row, style, "%s", msg.Envelope.Subject) row += 1 } if len(ml.store.Uids) == 0 { msg := "(no messages)" ctx.Printf((ctx.Width()/2)-(len(msg)/2), 0, tcell.StyleDefault, "%s", msg) } if len(needsHeaders) != 0 { ml.store.FetchHeaders(needsHeaders, nil) ml.spinner.Start() } else { ml.spinner.Stop() } } func (ml *MessageList) Height() int { return ml.height } func (ml *MessageList) storeUpdate(store *lib.MessageStore) { if ml.store != store { return } if len(ml.store.Uids) > 0 { for ml.selected >= len(ml.store.Uids) { ml.Prev() } } ml.Invalidate() } func (ml *MessageList) SetStore(store *lib.MessageStore) { if ml.store == store { ml.scroll = 0 ml.selected = 0 } ml.store = store if store != nil { ml.spinner.Stop() ml.store.OnUpdate(ml.storeUpdate) } else { ml.spinner.Start() } ml.Invalidate() } func (ml *MessageList) Store() *lib.MessageStore { return ml.store } func (ml *MessageList) Empty() bool { return ml.store == nil || len(ml.store.Uids) == 0 } func (ml *MessageList) Selected() *types.MessageInfo { return ml.store.Messages[ml.store.Uids[len(ml.store.Uids)-ml.selected-1]] } func (ml *MessageList) Select(index int) { ml.selected = index for ; ml.selected < 0; ml.selected = len(ml.store.Uids) + ml.selected { } if ml.selected > len(ml.store.Uids) { ml.selected = len(ml.store.Uids) } // I'm too lazy to do the math right now for ml.selected-ml.scroll >= ml.Height() { ml.scroll += 1 } for ml.selected-ml.scroll < 0 { ml.scroll -= 1 } } func (ml *MessageList) nextPrev(delta int) { if ml.store == nil || len(ml.store.Uids) == 0 { return } ml.selected += delta if ml.selected < 0 { ml.selected = 0 } if ml.selected >= len(ml.store.Uids) { ml.selected = len(ml.store.Uids) - 1 } if ml.Height() != 0 { if ml.selected-ml.scroll >= ml.Height() { ml.scroll += 1 } else if ml.selected-ml.scroll < 0 { ml.scroll -= 1 } } ml.Invalidate() } func (ml *MessageList) Next() { ml.nextPrev(1) } func (ml *MessageList) Prev() { ml.nextPrev(-1) }