aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c (follow)
Commit message (Collapse)AuthorAgeLines
* redundant check for 'list'okan2015-06-05-2/+2
|
* Reshuffle and slightly simplify menu_complete_path(), removing anokan2015-03-28-10/+6
| | | | allocation, for tab-completion; checked by Alexander Polakov as well.
* Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAXokan2015-01-19-2/+3
| | | | | | and HOST_NAME_MAX+1, respectively. ok doug@
* more style nitsokan2014-09-07-14/+14
|
* style nitokan2014-09-06-3/+3
|
* Take menu's bwidth into account for position/size; reported by Thomas Adam.okan2014-02-01-3/+3
|
* Sprinkle a few more const; from Tiago Cunha.okan2014-01-21-3/+3
|
* Add a function that adds an entry to a menuq, normalizing a common codeokan2014-01-20-1/+18
| | | | path; from Tiago Cunha.
* use consistent typesokan2014-01-03-3/+3
|
* calculate proper menu width/height on the first Expose event; 'jump' (while ↵okan2014-01-02-3/+3
| | | | using gap) noticed by Christian Neukirchen
* replace with memsetokan2013-12-17-2/+2
|
* Teach screen_find_xinerama() to apply gap only when told to do so;okan2013-12-13-2/+2
| | | | adjust callers. Needed for an upcoming feature.
* When we receive a NotionNotify event, there's no need to (incorrectlyokan2013-12-02-4/+1
| | | | might I add) redraw the top menu selection.
* Always highlight the first menu item (helpful to see selected items whenokan2013-12-02-5/+3
| | | | | not using a mouse and therefore not generating Expose/MotionNotify events); from Thomas Adam.
* move Cursors into conf.okan2013-06-17-4/+5
|
* stray whitespaceokan2013-05-20-2/+2
|
* - configure menuwin with the screen, then create the xft drawable usingokan2013-05-20-13/+4
| | | | | the menu window since that's the only place on which we draw - elminate the need to change the drawable on every font draw
* no reason to pass around *sc when it's already in menu_ctx.okan2013-05-20-34/+32
|
* move the 2 small font helper functions to xutil.cokan2013-05-19-6/+6
|
* - let callers of font_draw figure out (and pass) the color instead of anokan2013-05-14-5/+5
| | | | | | 'active' flag. - use strlen() inside of font_draw; the only instance where it wasn't used happened to be ignored on a subsequent draw.
* spacingokan2013-05-10-2/+2
|
* border width/color makes sense for some, so put it backokan2013-05-07-2/+4
|
* border width/color makes no sense on menuwinokan2013-05-06-4/+2
|
* - no need to position and size the menu window before an Expose eventokan2013-05-02-17/+10
| | | | | | | | | 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-02-2/+1
|
* no need for font_{ascent,descent,height} wrappers; limit font_width tookan2013-05-02-15/+19
| | | | just requiring xftfont.
* consistencyokan2013-04-08-1/+2
|
* missing prototypeokan2013-04-08-1/+2
|
* zap stray whitespaceokan2013-04-05-8/+8
|
* fix menu/client placement in panning setups; XineramaQueryScreens givesokan2013-01-07-1/+3
| | | | | 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-02-24/+13
| | | | XineramaScreenInfo; simplifies goop around the callers.
* more variable consistencyokan2013-01-02-11/+11
|
* create and use menuq_clear() helper; from Tiago Cunhaokan2012-12-17-5/+13
|
* knfokan2012-12-17-7/+7
|
* non-trivial menu drawing rewrite, moving to Xft and solving variousokan2012-12-17-30/+49
| | | | font/color drawing issues; from Alexander Polakov
* tab-complete buglet fix: once exec_path is completed, allow forokan2012-11-14-3/+1
| | | | subsequent completion; from Alexander Polakov
* sortokan2012-11-09-3/+3
|
* get rid of the xfree() wrapper around free(); from Tiago Cunha.okan2012-11-07-4/+4
|
* tab completion support for menus; from Alexander Polakov.okan2012-11-07-4/+74
| | | | ok sthen@ on an older incarnation
* replace 'reload' with 'restart', which merely re-exec's cwm using theokan2012-10-31-5/+1
| | | | | | | 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-23-3/+2
|
* add a height to struct menu and use it in the most obvious of places.okan2012-10-23-9/+11
|
* treat menu width the same as the height is treated when deciding itsokan2012-10-23-4/+6
| | | | 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-23-2/+7
| | | | larger diff from Alexander Polakov.
* support multibyte input to menu code; from Alexander Polakov with a tiny tweak.okan2012-08-07-22/+20
|
* convert xmax/ymax uses to view geometry.okan2012-07-13-3/+3
|
* convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysymokan2012-05-16-2/+2
| | | | ok sthen@
* reinit menu on reload; from Alexander Polakov. needed for catchingokan2011-09-08-1/+5
| | | | | | upcoming menu config changes. ok oga@
* use the menu border; from Alexander Polakov, but with the existing define.okan2011-07-25-3/+4
| | | | ok oga@
* We are inconsistent when it comes to function returns, so just go allokan2011-07-25-10/+10
| | | | | | the way with the cwm specific parts. ok oga@