aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c (unfollow)
Commit message (Collapse)AuthorLines
2017-05-09Alter callbacks to take a struct instead of a growing number of arguments;okan-105/+111
greatly simplifies upcoming work.
2016-12-06stray newlinesokan-1/+2
2016-12-06'window-search' is spelled 'menu-window'; the former snuck in during theokan-2/+1
conversion('menu-window' already existed and was properlly documented); found the hard way by sthen@ while trying to convert.
2016-12-02Fold unbinding functions into one for each, key and mouse; plugs a leak whenokan-37/+11
unbinding a mouse button bound to a command.
2016-12-02use the correct typeokan-2/+2
2016-12-01Change 'menu-window' to display all windows; then add 'menu-window-hidden' forokan-2/+5
the previous behaviour of 'menu-window'. 'menu-window' becomes the default binding; use 'bind-mouse "1" menu-window-hidden' to restore old behaviour for those who prefer. OK sthen@ (long long time ago on a different version)
2016-12-01Normalize bind function names, based on a few categories: window, group, menuokan-163/+201
and pointer. Replace 'bind' and 'mousebind' options with 'bind-key' and 'bind-mouse', respectively, replace special 'unmap' keyword with 'unbind-key' and 'unbind-mouse', and additionally allow unbinding all with 'all' keyword.
2016-11-15revert previous; upcoming changes will hopefully deal with these moreokan-3/+3
naturally.
2016-11-15Add a wrapper based upon xevent handlers around client move/resize for key andokan-3/+3
mouse bindings.
2016-11-14Define callbacks, then default bindings.okan-79/+81
2016-11-14Reorganize for upcoming changes.okan-287/+256
2016-11-14Remove the (8) default bindings for pointer move since they conflict withokan-9/+1
default bindings for emacs, which wins; the feature remains and can be bound to whatever users wish with cwmrc(5). from mpi@
2016-10-24Make it clear these are flags.okan-5/+5
2016-10-24Sprinkle __func__ in appropriate error messages.okan-3/+3
2016-10-18Refactor callbacks to take a void * so as to not try and generalize intookan-161/+147
client_ctx in keypress and buttonpress event handlers; pass appropriate *ctx's based on context. While here, limit some globals, replace defines with appropriate variables and fix some naming.
2016-10-06Rename 2 kbfunc to match closer to what they dookan-4/+4
2016-10-06Add an argument to the callbacks to pass the xevent context, button orokan-12/+7
key press. This allows to remove a few hacks to duplicate functions only for behaviour changes; now differing behaviours are pushed down to the callback. Also will allow for previously unavailable actions to be bind-able down the road.
2016-10-05Add CM-a for 'nogroup' (CM-0 stays for now); update manpage to reflect.okan-1/+2
2016-10-05Stash wmname into conf.okan-1/+3
2016-10-04Calculate client nameqlen in client_setname(), the only place it'sokan-1/+2
needed/used.
2016-10-04Turn CALMWM_NGROUPS define into variable, ngroups.okan-1/+2
2016-10-03Start simplifying menu code; and in turn, remove a cursor no longerokan-4/+3
needed.
2016-10-03Defaults are split between defines and conf_init(); normalize these, asokan-5/+6
well as give 'sticky' groups its own variable.
2016-09-30Use instinsic X11 functions for key/btn/ptr grab/ungrab/regrab requests;okan-7/+27
the one line wrappers provided no value and limited altering calls where needed; additionally, most of them had but one caller.
2016-09-29Mechanical change: move screen menu bits to their own struct.okan-4/+4
2016-09-22Continue merging kb and mouse functions: foldokan-4/+7
mousefunc_menu_{client,cmd,group} into the respective kbfunc_menu_{client,cmd,group} functions; simply pass a flag down from config denoting mouse action behaviour.
2016-09-12change 'sticky' to 'stick' to toggle client stickiness (seems theokan-3/+3
default binding worked for everyone for a long time!); conflict with group sticky found by Ali Farzanrad - thanks!
2016-08-13add a column to previous commit for consitency.matthieu-2/+2
2016-08-13conf_screen: report the fontname that can't be opened in case of failure.matthieu-2/+2
ok dcoppa@
2015-11-17Fix a typo from r1.201; fixes window_grouptoggle binding.okan-2/+2
2015-11-12more client vs screen context differencesokan-23/+23
2015-11-12Move kb pointer movement out of the kbfunc_client_moveresize since it'sokan-49/+49
got nothing to do with clients, thus doing flags work causes lots of waste and almost useless jumpy pointer movements; while here, split out move and resize since they share almost no code, just like mouse client move/resize; factor out amount and factor. Still wonder why this is here, but it works now.
2015-11-10Start cleaning up name vs function differences; replace magic numbers.okan-101/+123
2015-09-16On execwm, we should properly release resources before exec'ing into aokan-2/+2
new window manager; so allow CWM_EXEC_WM to assign new wm to wm_argv and pass through cwm_status (now EXECWM) so that x_teardown() gets called before exec'ing the new window manager. Removes the need for a separate x_restart() now, using new wm_argv; and consolidates errno for execvp.
2015-08-24Implement _NET_CLIENT_LIST_STACKING (from Thomas Admin), butokan-1/+2
bottom-to-top order, as per spec (notified Thomas as well).
2015-08-24Sort _NET_WM_STATE Atoms like the spec.okan-2/+2
2015-08-21Fix whitespace.okan-27/+27
2015-08-21Add client freeze extension to _NET_WM_STATE Atom, allowing flag tookan-1/+2
persist. As usual with new Atoms, requires X restart.
2015-08-21Leave command list order from .cwmrc alone; remove sort.okan-9/+2
2015-08-20Alter big move and resize bindings to match what's in cwm(1);okan-9/+9
functionally the same, but re-binding should be based on default bindings. Matches other similiar bindings. Discovered by a portable user.
2015-07-12introduce 'groupsearch' for group menu search; matches on either groupokan-1/+2
number/shortcut and/or name.
2015-07-01styleokan-3/+3
2015-06-30keep cmdq sortedokan-2/+10
2015-06-30style and spacing nitsokan-4/+4
2015-05-21merge kbd and mouse grouptoggleokan-3/+3
2015-05-17Make window name and window class separate parameters to conf_autogroup.kspillner-6/+15
No functional change, but will be used shortly. ok okan@
2015-03-26Simplify key/mb binding moving argtype into flags and dropping anotherokan-13/+9
variable; removes the need to zero out struct binding, leaving a simple malloc.
2015-01-24calloc -> mallocokan-2/+2
2015-01-23use malloc over calloc hereokan-2/+2
2015-01-19Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAXokan-2/+3
and HOST_NAME_MAX+1, respectively. ok doug@