okan
52982ae188
non-trivial menu drawing rewrite, moving to Xft and solving various
...
font/color drawing issues; from Alexander Polakov
2012-12-17 02:28:45 +00:00
okan
89bef83e09
tab-complete buglet fix: once exec_path is completed, allow for
...
subsequent completion; from Alexander Polakov
2012-11-14 21:12:24 +00:00
okan
4f78cb6835
sort
2012-11-09 03:52:02 +00:00
okan
1e3fec4362
get rid of the xfree() wrapper around free(); from Tiago Cunha.
2012-11-07 20:34:39 +00:00
okan
8bbba5aed3
tab completion support for menus; from Alexander Polakov.
...
ok sthen@ on an older incarnation
2012-11-07 14:39:44 +00:00
okan
34267fe638
replace 'reload' with 'restart', which merely re-exec's cwm using the
...
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-31 19:30:19 +00:00
okan
72f1943e2c
comment what this whole bit does, not just part of it.
2012-10-23 16:13:59 +00:00
okan
b94eed0ab4
add a height to struct menu and use it in the most obvious of places.
2012-10-23 16:08:59 +00:00
okan
770189e8ac
treat menu width the same as the height is treated when deciding its
...
max size and location; partially from a diff from Alexander Polakov.
2012-10-23 15:50:15 +00:00
okan
44b83028a3
Stop drawing when menu doesn't fit inside the screen; picked from a
...
larger diff from Alexander Polakov.
2012-10-23 15:32:38 +00:00
okan
f4e0469f06
support multibyte input to menu code; from Alexander Polakov with a tiny tweak.
2012-08-07 14:05:49 +00:00
okan
6ee7c6534f
convert xmax/ymax uses to view geometry.
2012-07-13 15:21:35 +00:00
okan
abc316c162
convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym
...
ok sthen@
2012-05-16 01:04:36 +00:00
okan
9ab59987f7
reinit menu on reload; from Alexander Polakov. needed for catching
...
upcoming menu config changes.
ok oga@
2011-09-08 12:00:49 +00:00
okan
3826753e1a
use the menu border; from Alexander Polakov, but with the existing define.
...
ok oga@
2011-07-25 15:41:05 +00:00
okan
bd65f03126
We are inconsistent when it comes to function returns, so just go all
...
the way with the cwm specific parts.
ok oga@
2011-07-25 15:10:24 +00:00
okan
24bf547e5f
Clarify defines and make them not look like non-local ones; started by a
...
small diff from Thomas Pfaff.
ok oga@
2011-07-23 13:09:11 +00:00
okan
33023ff923
UTF8-ify, from Alexander Polakov, but without setlocale(), after
...
feedback from stsp@ - thanks!
'go for it' oga@
2011-06-27 12:46:54 +00:00
okan
0fd446f068
add 'normal' cursor and shuffle the others we use to make a bit more
...
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-06-24 06:52:23 +00:00
okan
4fb00eca7b
tag and comment cleanup; ok oga@
2011-05-11 13:53:51 +00:00
okan
d4b279e29e
make the menu window aware of xinerama info; this makes the menu stay
...
within the current screen, like other cwm window placements and
mutations (vmax/hmax/max) - from Sviatoslav Chagaev.
ok oga@
2011-05-05 15:32:24 +00:00
okan
4c04a27385
warp the pointer back, iff we don't move the mouse, once we are done
...
with the menu; idea and initial from Sviatoslav Chagaev.
discussion with and ok oga@
2011-03-22 13:50:40 +00:00
okan
9a52c582b1
we should re-focus the client and ungrab the ptr even if we don't have a
...
mouse based match (i.e. in the kbd no match case). update the comment
as well.
ok oga@
2011-03-22 11:09:52 +00:00
okan
482c4ce498
fix nousance of always highlighting the first entry even when there is
...
no match (seen in the ctrl-a case)
ok oga@
2011-03-22 11:05:13 +00:00
okan
d0a487aa3d
move the default case to the end.
...
ok oga@
2011-03-22 11:03:05 +00:00
okan
3b73daa6c2
move the single keycode function directly into the menu code.
...
ok oga@
2011-03-22 10:47:59 +00:00
okan
5d67594356
preserve labels after an edit action is aborted; extending the menu
...
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@
2010-02-10 01:23:05 +00:00
okan
ba93a73ad3
pull all non-X11 headers from calmwm.h and place them only where they
...
are required.
encourged to go all the way by oga@
2009-12-15 04:10:42 +00:00
okan
9dfa8ad14a
merge the 2 common header files; specific includes to be pulled out as
...
separate commits.
ok oga@
2009-12-15 03:24:36 +00:00
oga
206c3e3bc9
finish unfucking the screen_ctx handling.
...
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-10 17:16:51 +00:00
okan
ed29ebe53b
start fixing screen_ctx usage, for it is utterly broken. bring font
...
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-08 16:52:17 +00:00
okan
bb65c9fc09
fix off-by-one where a mere click would select the first item inside a menu
...
from Thomas Pfaff
ok oga@
2009-12-07 19:48:08 +00:00
tobias
18dd1d8fc7
style (whitespaces)
...
ok oga, okan
2009-11-28 17:52:12 +00:00
tobias
6e4f4540c2
style
...
ok oga
2009-09-05 14:10:11 +00:00
okan
d893a97dee
static local functions and data; almost identical diff from Thomas Pfaff
...
ok oga@
2009-06-26 12:21:58 +00:00
okan
a7dfb91b88
unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over the
...
place anyway, this makes things a bit more consistent; from Thomas Pfaff
ok oga@
2009-06-20 00:22:39 +00:00
okan
96b7d95a17
move like defines to a central, logical location; no binary change.
...
aok oga@
2009-06-17 12:30:17 +00:00
okan
56f901ac72
revert the 1.4 change - causes a double free noticed by grange@ a while
...
ago while using kazehakase (or clients that don't set a name).
ok oga@
2009-05-30 00:29:08 +00:00
okan
d3c904a333
a long time coming - re-work the way we deal with colors: since we're
...
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-05-17 23:40:57 +00:00
martynas
b2a47454e5
- avoid shadowed Mask declaration in menu_filter
...
- make _xev_reincorporate static
evmask naming oga@, input okan@. ok okan@, oga@
2009-03-28 16:38:54 +00:00
okan
cfb9c394cb
spacing, declaration lineup to be consistent throughout cwm,
...
readability, and a bit of knf.
ok oga@
2008-07-11 14:21:28 +00:00
oga
4ef73665d3
Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.
...
makes the code a lot simpler. While here rearrange the font handling functions
to be less shit.
ok and help okan@.
2008-06-15 02:47:46 +00:00
okan
f42ad31e00
prevent trying to exec a null char; could potentially happen with a
...
canceled or empty searchstr.
ok oga@
2008-06-05 04:01:37 +00:00
oga
6d57649414
Grab the keyboard when we initialise the menu. This stops the keyboard
...
shortcut code stealing our events in some cases.
"put 'er in" okan@.
2008-05-23 18:48:57 +00:00
oga
bad8c87b4a
Make menu_filter handle mouse movement too. This enables the keyboard
...
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-21 14:11:19 +00:00
oga
ca512ce795
Pull out the behaviour in grab_label and search_start into one utility
...
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@.
2008-05-20 14:50:51 +00:00