summary refs log tree commit diff
path: root/menu.c
Commit message (Collapse)AuthorAgeFilesLines
...
* spacingokan2013-05-101-1/+1
|
* border width/color makes sense for some, so put it backokan2013-05-071-1/+3
|
* border width/color makes no sense on menuwinokan2013-05-061-3/+1
|
* - no need to position and size the menu window before an Expose eventokan2013-05-021-16/+9
| | | | | | | | | since we'll be calculating required size later anyway; allows us to consolidate all prompt/display/search string building goop into menu_draw. - reset the pos/size of menuwin when leaving a menu. - reverse the 'prompt' NULL check to be consistent with 'initial' one and fix a whitespace nit while here.
* zap leftover debug printfokan2013-05-021-1/+0
|
* no need for font_{ascent,descent,height} wrappers; limit font_width tookan2013-05-021-14/+18
| | | | just requiring xftfont.
* consistencyokan2013-04-081-0/+1
|
* missing prototypeokan2013-04-081-0/+1
|
* zap stray whitespaceokan2013-04-051-7/+7
|
* fix menu/client placement in panning setups; XineramaQueryScreens givesokan2013-01-071-0/+2
| | | | | us the width of the psuedo screen, but here we need the edge instead (xmax/ymax); just re-use w/h here for now.
* have screen_find_xinerama() return struct geom *reliably* instead ofokan2013-01-021-23/+12
| | | | XineramaScreenInfo; simplifies goop around the callers.
* more variable consistencyokan2013-01-021-10/+10
|
* create and use menuq_clear() helper; from Tiago Cunhaokan2012-12-171-4/+12
|
* knfokan2012-12-171-6/+6
|
* non-trivial menu drawing rewrite, moving to Xft and solving variousokan2012-12-171-29/+48
| | | | font/color drawing issues; from Alexander Polakov
* tab-complete buglet fix: once exec_path is completed, allow forokan2012-11-141-2/+0
| | | | subsequent completion; from Alexander Polakov
* sortokan2012-11-091-2/+2
|
* get rid of the xfree() wrapper around free(); from Tiago Cunha.okan2012-11-071-3/+3
|
* tab completion support for menus; from Alexander Polakov.okan2012-11-071-3/+73
| | | | ok sthen@ on an older incarnation
* replace 'reload' with 'restart', which merely re-exec's cwm using theokan2012-10-311-4/+0
| | | | | | | existing argv; same idea with respect to argv saving as Alexander Polakov. reload support was half-complete and is getting in the way. agreed to by many
* comment what this whole bit does, not just part of it.okan2012-10-231-2/+1
|
* add a height to struct menu and use it in the most obvious of places.okan2012-10-231-8/+10
|
* treat menu width the same as the height is treated when deciding itsokan2012-10-231-3/+5
| | | | max size and location; partially from a diff from Alexander Polakov.
* Stop drawing when menu doesn't fit inside the screen; picked from aokan2012-10-231-1/+6
| | | | larger diff from Alexander Polakov.
* support multibyte input to menu code; from Alexander Polakov with a tiny tweak.okan2012-08-071-21/+19
|
* convert xmax/ymax uses to view geometry.okan2012-07-131-2/+2
|
* convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysymokan2012-05-161-1/+1
| | | | ok sthen@
* reinit menu on reload; from Alexander Polakov. needed for catchingokan2011-09-081-0/+4
| | | | | | upcoming menu config changes. ok oga@
* use the menu border; from Alexander Polakov, but with the existing define.okan2011-07-251-2/+3
| | | | ok oga@
* We are inconsistent when it comes to function returns, so just go allokan2011-07-251-9/+9
| | | | | | the way with the cwm specific parts. ok oga@
* Clarify defines and make them not look like non-local ones; started by aokan2011-07-231-5/+5
| | | | | | small diff from Thomas Pfaff. ok oga@
* UTF8-ify, from Alexander Polakov, but without setlocale(), afterokan2011-06-271-5/+5
| | | | | | feedback from stsp@ - thanks! 'go for it' oga@
* add 'normal' cursor and shuffle the others we use to make a bit moreokan2011-06-241-1/+1
| | | | | | | | sense and to be slightly less un-expected. from Alexander Polakov. re-use 'normal' cursor now instead XC_hand1 for menu selection. i really wish X had real docs and made sense. ok on earlier diff with '?' removed (but it's back now) oga@
* tag and comment cleanup; ok oga@okan2011-05-111-0/+4
|
* make the menu window aware of xinerama info; this makes the menu stayokan2011-05-051-10/+27
| | | | | | | within the current screen, like other cwm window placements and mutations (vmax/hmax/max) - from Sviatoslav Chagaev. ok oga@
* warp the pointer back, iff we don't move the mouse, once we are doneokan2011-03-221-0/+8
| | | | | | with the menu; idea and initial from Sviatoslav Chagaev. discussion with and ok oga@
* we should re-focus the client and ungrab the ptr even if we don't have aokan2011-03-221-5/+5
| | | | | | | mouse based match (i.e. in the kbd no match case). update the comment as well. ok oga@
* fix nousance of always highlighting the first entry even when there isokan2011-03-221-1/+1
| | | | | | no match (seen in the ctrl-a case) ok oga@
* move the default case to the end.okan2011-03-221-2/+2
| | | | ok oga@
* move the single keycode function directly into the menu code.okan2011-03-221-2/+95
| | | | ok oga@
* 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@