summaryrefslogtreecommitdiff
path: root/app/cwm/menu.c
AgeCommit message (Collapse)Author
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@
2009-06-17move like defines to a central, logical location; no binary change.Okan Demirmen
aok oga@
2009-05-30revert the 1.4 change - causes a double free noticed by grange@ a whileOkan Demirmen
ago while using kazehakase (or clients that don't set a name). ok oga@
2009-05-17a long time coming - re-work the way we deal with colors: since we'reOkan Demirmen
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@
2009-03-28- avoid shadowed Mask declaration in menu_filterMartynas Venckus
- make _xev_reincorporate static evmask naming oga@, input okan@. ok okan@, oga@
2008-07-11spacing, declaration lineup to be consistent throughout cwm,Okan Demirmen
readability, and a bit of knf. ok oga@
2008-06-15Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.Owain Ainsworth
makes the code a lot simpler. While here rearrange the font handling functions to be less shit. ok and help okan@.
2008-06-05prevent trying to exec a null char; could potentially happen with aOkan Demirmen
canceled or empty searchstr. ok oga@
2008-05-23Grab the keyboard when we initialise the menu. This stops the keyboardOwain Ainsworth
shortcut code stealing our events in some cases. "put 'er in" okan@.
2008-05-21Make menu_filter handle mouse movement too. This enables the keyboardOwain Ainsworth
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@.
2008-05-20Pull out the behaviour in grab_label and search_start into one utilityOwain Ainsworth
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@.