okan
a899d267fe
add conf_ignore and move group_make_autogroup to conf_autogroup to match.
2013-04-17 13:30:38 +00:00
okan
104c7d5de3
cvsimport
2013-01-06 01:01:26 +00:00
okan
579f981718
really these are just border colors, so adjust the define
2013-01-04 16:27:58 +00:00
okan
698530155d
get rid of struct color
2013-01-04 16:23:04 +00:00
okan
f77166194f
cvsimport
2012-12-19 15:21:34 +00:00
okan
dc1e3a8843
gc unused cmd 'flags' variable
2012-12-19 15:21:34 +00:00
okan
96cd288a2a
knf
2012-12-17 02:53:29 +00:00
okan
6900cd3612
non-trivial menu drawing rewrite, moving to Xft and solving various
...
font/color drawing issues; from Alexander Polakov
2012-12-17 02:28:45 +00:00
okan
e27f649ae7
cvsimport
2012-11-01 01:10:47 +00:00
okan
620af2e52d
no longer a reason to carry conf_path in struct conf, so dice.
2012-10-31 22:06:24 +00:00
Christian Neukirchen
0bb88fa567
define YYSTYPE_IS_DECLARED to work with bison 2.3
2012-05-04 17:46:42 +02:00
okan
82d31aec1d
allow configurable menu font color; from Alexander Polakov with a tweak
...
from me.
ok oga@
2011-09-08 12:35:33 +00:00
okan
a262f8e80c
allow menufg/menubg to be configurable; from Alexander Polakov.
...
ok oga@
2011-09-08 12:07:03 +00:00
okan
b51f8e6a99
"defaultfont" is unclear (and confusing while reading code) when it also
...
applies to the user supplied font, so rename.
ok oga@
2011-09-03 09:17:16 +00:00
okan
2dc8df110c
revert r1.11 of parse.y and create logic in conf_setup instead to deal
...
with the various scenarios of when to attempt a parse of the config,
load defaults, and when to warn and/or exit. triggered by bogus warning
first noticed by sobrado@.
ok oga@
2011-08-22 16:18:05 +00:00
okan
f51f3cb9c2
We are inconsistent when it comes to function returns, so just go all
...
the way with the cwm specific parts.
ok oga@
2011-07-25 15:10:24 +00:00
okan
c585dfbf32
correct spelling; from Alexander Polakov.
2011-07-14 11:39:53 +00:00
okan
34ba6cdbcc
introduce a new config option to snap to the screen edge. 'snapdist'
...
keyword taken from a diff from Sviatoslav Chagaev to do the same thing,
but implemented in a completely way (based on some very old code from
mk@). default set to 0, so no behavior change.
ok oga@ (who would also like to take it further...)
2011-06-24 06:06:24 +00:00
okan
2d66003e4b
picked a henning diff from src - original log:
...
fix linecount bug with comments spanning multiple lines
problem reported with the obvious fix for bgpd by Sebastian Benoit
<benoit-lists at fb12.de>, also PR 6432
ok oga@
2010-09-25 20:02:58 +00:00
okan
e88bda0df5
- allow per-screen gap; not (yet) user configurable.
...
- teach _NET_WORKAREA about gap.
ok oga@
2010-01-27 03:04:50 +00:00
okan
ccb207a8a8
pull all non-X11 headers from calmwm.h and place them only where they
...
are required.
encourged to go all the way by oga@
2009-12-15 04:10:42 +00:00
okan
b6b7d273d4
merge the 2 common header files; specific includes to be pulled out as
...
separate commits.
ok oga@
2009-12-15 03:24:36 +00:00
oga
b35cbf81d8
Implement _NET_DESKTOP_NAMES, this one was a bit tricky since thespec
...
says that a pager can change the property at any time (most need a
clientmessage). So deal with property updates.
Needed to shuffle some of the other code around since we can't just use
shortcut_to_name[] everywhere now.
ok okan@
2009-12-11 17:51:42 +00:00
okan
58d12134b1
unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over the
...
place anyway, this makes things a bit more consistent; from Thomas Pfaff
ok oga@
2009-06-20 00:22:39 +00:00
okan
4d5dc5d9ea
a long time coming - re-work the way we deal with colors: since we're
...
using Xft(3), use it to select the font color as well instead of trying
to build one; properly allocate and free colors at-will, e.g. we now
have configurable colors.
feedback and ok's todd@ and oga@
2009-05-17 23:40:57 +00:00
martynas
17ae65adc5
add 'moveamount' to cwmrc; it sets keyboard movement amount, making
...
it more useful on large screens
manpage tweak & ok jmc@
ok okan@, oga@
2009-02-07 21:07:00 +00:00
okan
7660bf0db0
move conf_clear() and add proto.
...
ok todd@ oga@
2009-01-23 19:00:59 +00:00
oga
e239976078
The default font name is strduped, so don't test for default font name
...
(therefore leaking it) when cleaning up a conf struct.
ok okan@
2009-01-22 18:16:38 +00:00
todd
1b269199c1
borderwidth as a cwmrc(5) keyword, really helps debugging
...
from okan@
ok oga@
2009-01-21 15:04:38 +00:00
oga
d1050afb60
shortcut_to_name should not be defined as static in a header file. Put
...
it in group.c where it it used most, and add an extern definition for
the other users of it.
Found by gcc -Wall. ok okan@
2009-01-11 21:46:48 +00:00
okan
0aca400461
better comparison idiom; found with -Wall
...
ok oga@
2009-01-11 21:33:45 +00:00
mk
867652c484
Make this not crash when compiled with -g.
...
Found by myself, analysis by kurt@, fix by me with input from otto.
``Just get some fix in...'' deraadt
2008-06-16 19:09:48 +00:00
oga
07cd0b1ac5
Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.
...
makes the code a lot simpler. While here rearrange the font handling functions
to be less shit.
ok and help okan@.
2008-06-15 02:47:46 +00:00
okan
9d9c61b8f6
slightly alter the semantics of config files:
...
- if no config file, continue silently and apply defaults
- if config file, parse and move on
- if config file specified but not found, error out
ok oga@
2008-06-14 21:51:00 +00:00
okan
bdcbbe7f53
confable menu and window mouse bindings from rivo nurges (thanks!) with
...
some minor fixups, man page bits and knf.
ok oga@
2008-06-14 21:48:54 +00:00
oga
71f99ab78f
allow an autogroup value of 0 to mean no group. This means you can set
...
automatically "sticky" (in the traditional sense of the word) windows in
autogroup mode.
Based on an initial diff from Andrew Fresh, thanks!
ok okan@.
2008-05-19 17:13:55 +00:00
oga
27b023ebcb
Kill conf_get_int(), it was a silly function anyway.
...
Since it's only used once just put the (simplified) logic into
conf_client() instead. This means we can kill an enum and
CONF_IGNORECASE, too.
ok okan@
2008-05-18 19:43:50 +00:00
oga
a21a064a9b
When we're cleaning out the lists in parse_config and conf_clear it's a
...
lot simpler just to do while (entry = TAILQ_FIRST(head)) than to do a
for () over the whole lot. Simpler, shorter and probably faster.
ok okan@
2008-05-18 19:34:09 +00:00
simon
79569a4d59
Allow slashes in unquoted strings.
...
From Pierre Riteau
Makes sense to oga@
2008-04-29 20:17:28 +00:00
oga
f473dc3d12
Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc
...
respectively.
ok okan.
2008-04-16 13:38:09 +00:00
oga
75182c6d9c
hit it with the knf stick.
2008-04-15 20:24:41 +00:00
oga
3a94c57afc
Add "gap" support to .cwmrc. The options put in here make gaps on the edge
...
of the screen where an application won't be {,vert}maximized over. used for
placing a statusbar or something like xclock.
Patch from Edd Barrett, with input from myself and okan. Thanks!
ok okan@.
2008-04-15 18:46:58 +00:00
okan
fe80d40063
malloc -> calloc
...
suggested by and ok oga@
2008-04-15 18:22:08 +00:00
simon
c3aa344e78
Replace the symlink configuration scheme with a simple yacc parser as
...
found in other places of the tree. Remove sticky and font commandline
options and add another one for alternative config locations.
Split off cwmrc(5) from cwm(1), nuke #ifdef __OpenBSD__ while there.
tested by various kind people, feedback from oga@ and okan@ - thanks!
ok oga@, jasper@, okan@
2008-03-23 15:09:21 +00:00