Commit Briefs

32f2564dbb Hiltjo Posthuma

arg.h: remove unused ARGNUM* macros (tags/4.6)


cc596365ac Hiltjo Posthuma

unboolify dmenu


c9e4e152e6 Hiltjo Posthuma

Makefile: package config.def.h on make dist


cc99007809 Hiltjo Posthuma

remove .hgtags file



da0b9eb6c9 Hiltjo Posthuma

fix: multimon: always spawn client on first monitor if specified with -m 0

This was always broken. Reproduce: focus client on second monitor, spawn dmenu with -m 0. Result: Old wrong behaviour: dmenu spawns on second monitor (focused client). Now: dmenu spawns on specified monitor (first).


44b242c763 Hiltjo Posthuma

drw: cleanup drw_text, prevent gcc warning false-positive of unused var

... we don't allow passing text is NULL anymore either, for that behaviour just use drw_rect() (it is used in dwm).



1f2226df13 Hiltjo Posthuma

drw: a valid (non-NULL) Drw and Fnt context must be passed

don't do these checks on this level. However for resource drw_*_free we will allow it.


5a20b409c6 Hiltjo Posthuma

add sbase-style ecalloc(), calloc: or die

... remove intermediary variables


164986763a Hiltjo Posthuma

free schemes as array

this makes it slightly easier to add custom schemes aswell


09d0a36e03 Hiltjo Posthuma

fix input text matching

just compare the size of the input string


acbf35a5e3 Hiltjo Posthuma

fix incorrect ordering of match results

look for exact matches comparing the user input against the item text


240a7810e4 Hiltjo Posthuma

fix paste from clipboard (ctrl+shift+y)

from Joshua Lloret on the ML: "attached is a small patch to enable pasting from clipboard, as well as primary. It seems like there was already code in there to allow this, but since there was never any case to match the upper case 'Y', that inline if would always evaluate to false."


d5ce8df9d9 Hiltjo Posthuma

minor style fix


ba75bb30fa Hiltjo Posthuma

Remove function prototypes and reorder functions accordingly


10fd4f275f Hiltjo Posthuma

Untypedef struct item

Adds clarity. Typedefs for structs are definitely a discussion matter, but there's no reason to hide a simple data-structure behind a meaningless typedef.


b048eacc9d Hiltjo Posthuma

Fix the conversion from microseconds to nanoseconds


c42c378027 Hiltjo Posthuma

Replace deprecated usleep() with nanosleep()


c15a95a061 Hiltjo Posthuma

config.mk: use -std=c99


cf0fb79cd8 Hiltjo Posthuma

dmenu: style improvements

- move main to bottom, usage above main. - dont use variable names with function prototypes. - space before if, for, while, etc: 'if(' -> 'if ('. this makes the code-style more consistent


03cb1ec55a Hiltjo Posthuma

drw style improvements

this makes the code-style more consistent aswell.


bc20c13db0 Hiltjo Posthuma

separate program-specific c99 bool and X11

True, False are X11-specific, make sure to use c99 stdbool for program-specific things. ... also remove left-over vim mode string in config.


96e60c66bc Hiltjo Posthuma

config.mk: fix _XOPEN_SOURCE=700 for getline()


2d2175ff6f Hiltjo Posthuma

config.mk: improve feature test check

this fixes a crash on NetBSD because it requires -D_XOPEN_SOURCE (strdup, usleep). thanks k0ga and stateless for reporting and fixing this issue!