okan
bc21e4aa37
cvsimport
2015-03-29 00:21:05 +00:00
okan
0bbe0ad98c
Reshuffle and slightly simplify menu_complete_path(), removing an
...
allocation, for tab-completion; checked by Alexander Polakov as well.
2015-03-28 22:09:10 +00:00
Christian Neukirchen
742732a1c8
cvsimport
2015-01-22 11:06:01 +01:00
okan
7936b9b2a7
Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX
...
and HOST_NAME_MAX+1, respectively.
ok doug@
2015-01-19 14:54:16 +00:00
okan
2540b3f4fe
cvsimport
2014-09-18 13:56:58 +00:00
okan
3d12b6d1d9
more style nits
2014-09-07 19:27:30 +00:00
Christian Neukirchen
9e560bd745
cvsimport
2014-09-07 15:47:44 +00:00
okan
140f8b9eba
style nit
2014-09-06 16:18:08 +00:00
okan
b923524a8e
cvsimport
2014-02-02 21:34:05 +00:00
okan
fd827fd757
Take menu's bwidth into account for position/size; reported by Thomas Adam.
2014-02-01 19:28:46 +00:00
okan
371902b3c9
cvsimport
2014-01-21 15:42:44 +00:00
okan
ac3162439a
Sprinkle a few more const; from Tiago Cunha.
2014-01-21 15:42:44 +00:00
okan
720b5452aa
Add a function that adds an entry to a menuq, normalizing a common code
...
path; from Tiago Cunha.
2014-01-20 18:58:03 +00:00
okan
86b149ad25
cvsimport
2014-01-03 15:29:06 +00:00
okan
43ccf4eae0
use consistent types
2014-01-03 15:29:06 +00:00
okan
f4c289b9e6
cvsimport
2014-01-03 14:23:50 +00:00
okan
2843ba1e28
calculate proper menu width/height on the first Expose event; 'jump' (while using gap) noticed by Christian Neukirchen
2014-01-02 22:49:10 +00:00
okan
b387351df1
cvsimport
2013-12-17 16:12:18 +00:00
okan
da2bea3ffa
replace with memset
2013-12-17 16:10:43 +00:00
okan
75b69c0b04
cvsimport
2013-12-13 22:39:13 +00:00
okan
f98f4615c0
Teach screen_find_xinerama() to apply gap only when told to do so;
...
adjust callers. Needed for an upcoming feature.
2013-12-13 22:39:13 +00:00
okan
5dc65d9242
When we receive a NotionNotify event, there's no need to (incorrectly
...
might I add) redraw the top menu selection.
2013-12-02 20:01:19 +00:00
okan
873763f4c6
cvsimport
2013-12-02 20:01:19 +00:00
okan
161ed1801a
Always highlight the first menu item (helpful to see selected items when
...
not using a mouse and therefore not generating Expose/MotionNotify
events); from Thomas Adam.
2013-12-02 19:49:26 +00:00
okan
9a12ca3520
cvsimport
2013-06-20 02:33:57 +00:00
okan
234b8214df
move Cursors into conf.
2013-06-17 17:11:10 +00:00
Christian Neukirchen
5515a365ba
cvsimport
2013-05-29 22:41:51 +02:00
okan
c2042cd523
stray whitespace
2013-05-20 21:32:00 +00:00
okan
270df196ac
- configure menuwin with the screen, then create the xft drawable using
...
the menu window since that's the only place on which we draw
- elminate the need to change the drawable on every font draw
2013-05-20 20:21:04 +00:00
okan
e14123210a
no reason to pass around *sc when it's already in menu_ctx.
2013-05-20 20:04:36 +00:00
okan
5b4c55616a
move the 2 small font helper functions to xutil.c
2013-05-19 23:38:20 +00:00
okan
c637a54048
- let callers of font_draw figure out (and pass) the color instead of an
...
'active' flag.
- use strlen() inside of font_draw; the only instance where it wasn't
used happened to be ignored on a subsequent draw.
2013-05-14 12:35:56 +00:00
okan
d0fe80b1f4
spacing
2013-05-10 16:10:40 +00:00
okan
5f06e5a8ca
border width/color makes sense for some, so put it back
2013-05-07 01:35:41 +00:00
okan
27854d9061
border width/color makes no sense on menuwin
2013-05-06 16:00:34 +00:00
okan
e91c716262
- no need to position and size the menu window before an Expose event
...
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-02 20:18:35 +00:00
okan
0d209028be
zap leftover debug printf
2013-05-02 19:41:52 +00:00
okan
5acf6c147f
no need for font_{ascent,descent,height} wrappers; limit font_width to
...
just requiring xftfont.
2013-05-02 17:25:15 +00:00
okan
6f185bb03c
cvsimport
2013-04-14 16:13:17 +00:00
okan
28b54db221
consistency
2013-04-08 13:02:31 +00:00
okan
8c47a12a86
missing prototype
2013-04-08 00:56:21 +00:00
okan
a957ed7c7d
cvsimport
2013-04-05 17:36:02 +00:00
okan
670207f79b
zap stray whitespace
2013-04-05 17:07:25 +00:00
okan
9c6226faa8
cvsimport
2013-01-13 13:55:12 +00:00
okan
e7b85cfb2f
fix menu/client placement in panning setups; XineramaQueryScreens gives
...
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-07 21:53:23 +00:00
okan
104c7d5de3
cvsimport
2013-01-06 01:01:26 +00:00
okan
ce8ef02ed2
have screen_find_xinerama() return struct geom *reliably* instead of
...
XineramaScreenInfo; simplifies goop around the callers.
2013-01-02 16:26:34 +00:00
okan
e492ed8e41
more variable consistency
2013-01-02 02:19:20 +00:00
okan
f77166194f
cvsimport
2012-12-19 15:21:34 +00:00
okan
3a3e0383b2
create and use menuq_clear() helper; from Tiago Cunha
2012-12-17 14:32:39 +00:00