summary refs log tree commit diff
path: root/menu.c
Commit message (Collapse)AuthorAgeFilesLines
* preserve labels after an edit action is aborted; extending the menuokan2010-02-101-0/+2
| | | | | | | | | struct just for this is the least intrusive approach until the menu code is reviewed. inspired by Thomas Pfaff's report on tech@ ok oga@
* pull all non-X11 headers from calmwm.h and place them only where theyokan2009-12-151-0/+10
| | | | | | are required. encourged to go all the way by oga@
* merge the 2 common header files; specific includes to be pulled out asokan2009-12-151-1/+0
| | | | | | separate commits. ok oga@
* finish unfucking the screen_ctx handling.oga2009-12-101-4/+2
| | | | | | | | | | | | | remove screen_current() it was utterly bogus when nscreens > 1. pass a fake client_ctx in the case where there's no client and the kbfunc or mousefunc doesn't need a real one, it just contains the current screen, modify these functions so that they pass down the screen context to their callees. make groups per screen, it's the only way it makes sense in this regard. ok okan@.
* start fixing screen_ctx usage, for it is utterly broken. bring fontokan2009-12-081-15/+15
| | | | | | | | | into screen_ctx and start passing screen_ctx around to in order get rid of Curscreen; fixup per-screen config colors the same way. diff mostly from oga@, with a bit harsher reaction to the state of screen_ctx. "please commit" oga@
* fix off-by-one where a mere click would select the first item inside a menuokan2009-12-071-1/+1
| | | | | | from Thomas Pfaff ok oga@
* style (whitespaces)tobias2009-11-281-1/+1
| | | | ok oga, okan
* styletobias2009-09-051-2/+2
| | | | ok oga
* static local functions and data; almost identical diff from Thomas Pfaffokan2009-06-261-3/+3
| | | | ok oga@
* unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over theokan2009-06-201-1/+1
| | | | | | place anyway, this makes things a bit more consistent; from Thomas Pfaff ok oga@
* move like defines to a central, logical location; no binary change.okan2009-06-171-5/+0
| | | | aok oga@
* revert the 1.4 change - causes a double free noticed by grange@ a whileokan2009-05-301-1/+1
| | | | | | ago while using kazehakase (or clients that don't set a name). ok oga@
* a long time coming - re-work the way we deal with colors: since we'reokan2009-05-171-2/+13
| | | | | | | | 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@
* - avoid shadowed Mask declaration in menu_filtermartynas2009-03-281-5/+5
| | | | | - make _xev_reincorporate static evmask naming oga@, input okan@. ok okan@, oga@
* spacing, declaration lineup to be consistent throughout cwm,okan2008-07-111-7/+8
| | | | | | readability, and a bit of knf. ok oga@
* Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.oga2008-06-151-20/+16
| | | | | | | makes the code a lot simpler. While here rearrange the font handling functions to be less shit. ok and help okan@.
* prevent trying to exec a null char; could potentially happen with aokan2008-06-051-1/+1
| | | | | | canceled or empty searchstr. ok oga@
* Grab the keyboard when we initialise the menu. This stops the keyboardoga2008-05-231-0/+5
| | | | | | shortcut code stealing our events in some cases. "put 'er in" okan@.
* Make menu_filter handle mouse movement too. This enables the keyboardoga2008-05-211-32/+137
| | | | | | | | | | search dialogues to be manipulated with the mouse, too. It also allows me to shrink the codebase further by killing grab_menu(). One known issue with highlighting the first entry in a search dialogue, that'll be fixed soonish. ok okan@, tested by Edd Barrett and todd@.
* Pull out the behaviour in grab_label and search_start into one utilityoga2008-05-201-0/+296
function menu_filter(). The plan is to eventually merge in grab_menu too. Shrinks the code a fair bit. Also, change XMaskEvent for XWindowEvent to prevent getting exposes for other windows. This is particuarly noticable on slow machines with a LOT of xterms (todd, you're an odd man). ok okan@, todd@.