summaryrefslogtreecommitdiff
path: root/app/cwm/menu.c
AgeCommit message (Collapse)Author
2013-05-10spacingOkan Demirmen
2013-05-07border width/color makes sense for some, so put it backOkan Demirmen
2013-05-06border width/color makes no sense on menuwinOkan Demirmen
2013-05-02- no need to position and size the menu window before an Expose eventOkan Demirmen
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.
2013-05-02zap leftover debug printfOkan Demirmen
2013-05-02no need for font_{ascent,descent,height} wrappers; limit font_width toOkan Demirmen
just requiring xftfont.
2013-04-08consistencyOkan Demirmen
2013-04-08missing prototypeOkan Demirmen
2013-04-05zap stray whitespaceOkan Demirmen
2013-01-07fix menu/client placement in panning setups; XineramaQueryScreens givesOkan Demirmen
us the width of the psuedo screen, but here we need the edge instead (xmax/ymax); just re-use w/h here for now.
2013-01-02have screen_find_xinerama() return struct geom *reliably* instead ofOkan Demirmen
XineramaScreenInfo; simplifies goop around the callers.
2013-01-02more variable consistencyOkan Demirmen
2012-12-17create and use menuq_clear() helper; from Tiago CunhaOkan Demirmen
2012-12-17knfOkan Demirmen
2012-12-17non-trivial menu drawing rewrite, moving to Xft and solving variousOkan Demirmen
font/color drawing issues; from Alexander Polakov
2012-11-14tab-complete buglet fix: once exec_path is completed, allow forOkan Demirmen
subsequent completion; from Alexander Polakov
2012-11-09sortOkan Demirmen
2012-11-07get rid of the xfree() wrapper around free(); from Tiago Cunha.Okan Demirmen
2012-11-07tab completion support for menus; from Alexander Polakov.Okan Demirmen
ok sthen@ on an older incarnation
2012-10-31replace 'reload' with 'restart', which merely re-exec's cwm using theOkan Demirmen
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
2012-10-23comment what this whole bit does, not just part of it.Okan Demirmen
2012-10-23add a height to struct menu and use it in the most obvious of places.Okan Demirmen
2012-10-23treat menu width the same as the height is treated when deciding itsOkan Demirmen
max size and location; partially from a diff from Alexander Polakov.
2012-10-23Stop drawing when menu doesn't fit inside the screen; picked from aOkan Demirmen
larger diff from Alexander Polakov.
2012-08-07support multibyte input to menu code; from Alexander Polakov with a tiny tweak.Okan Demirmen
2012-07-13convert xmax/ymax uses to view geometry.Okan Demirmen
2012-05-16convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysymOkan Demirmen
ok sthen@
2011-09-08reinit menu on reload; from Alexander Polakov. needed for catchingOkan Demirmen
upcoming menu config changes. ok oga@
2011-07-25use the menu border; from Alexander Polakov, but with the existing define.Okan Demirmen
ok oga@
2011-07-25We are inconsistent when it comes to function returns, so just go allOkan Demirmen
the way with the cwm specific parts. ok oga@
2011-07-23Clarify defines and make them not look like non-local ones; started by aOkan Demirmen
small diff from Thomas Pfaff. ok oga@
2011-06-27UTF8-ify, from Alexander Polakov, but without setlocale(), afterOkan Demirmen
feedback from stsp@ - thanks! 'go for it' oga@
2011-06-24add 'normal' cursor and shuffle the others we use to make a bit moreOkan Demirmen
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@
2011-05-11tag and comment cleanup; ok oga@Okan Demirmen
2011-05-05make the menu window aware of xinerama info; this makes the menu stayOkan Demirmen
within the current screen, like other cwm window placements and mutations (vmax/hmax/max) - from Sviatoslav Chagaev. ok oga@
2011-03-22warp the pointer back, iff we don't move the mouse, once we are doneOkan Demirmen
with the menu; idea and initial from Sviatoslav Chagaev. discussion with and ok oga@
2011-03-22we should re-focus the client and ungrab the ptr even if we don't have aOkan Demirmen
mouse based match (i.e. in the kbd no match case). update the comment as well. ok oga@
2011-03-22fix nousance of always highlighting the first entry even when there isOkan Demirmen
no match (seen in the ctrl-a case) ok oga@
2011-03-22move the default case to the end.Okan Demirmen
ok oga@
2011-03-22move the single keycode function directly into the menu code.Okan Demirmen
ok oga@
2010-02-10preserve labels after an edit action is aborted; extending the menuOkan Demirmen
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@
2009-12-15pull all non-X11 headers from calmwm.h and place them only where theyOkan Demirmen
are required. encourged to go all the way by oga@
2009-12-15merge the 2 common header files; specific includes to be pulled out asOkan Demirmen
separate commits. ok oga@
2009-12-10finish unfucking the screen_ctx handling.Owain Ainsworth
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@.
2009-12-08start fixing screen_ctx usage, for it is utterly broken. bring fontOkan Demirmen
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@
2009-12-07fix off-by-one where a mere click would select the first item inside a menuOkan Demirmen
from Thomas Pfaff ok oga@
2009-11-28style (whitespaces)Tobias Stoeckmann
ok oga, okan
2009-09-05styleTobias Stoeckmann
ok oga
2009-06-26static local functions and data; almost identical diff from Thomas PfaffOkan Demirmen
ok oga@
2009-06-20unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over theOkan Demirmen
place anyway, this makes things a bit more consistent; from Thomas Pfaff ok oga@