Up to [local] / xenocara / app / cwm
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.110 / (download) - annotate - [select for diffs], Sat Oct 15 16:06:07 2022 UTC (2 years, 6 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE,
OPENBSD_7_7,
OPENBSD_7_6_BASE,
OPENBSD_7_6,
OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
HEAD
Changes since 1.109: +13 -14 lines
Diff to previous 1.109 (colored)
Fix overlapping menu items as reported by kn@ and probably others at some point; with op@ and Walter Alejandro Iglesias helping along the way. Consistently use font ascent+descent instead of an arbitrary font height+1 for individual menu item rectangles and placement. ok kn@ op@
Revision 1.109 / (download) - annotate - [select for diffs], Thu Feb 27 14:56:39 2020 UTC (5 years, 2 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.108: +19 -19 lines
Diff to previous 1.108 (colored)
Unrelated style fixes, consistency changes and sorting, appropriate dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions.
Revision 1.108 / (download) - annotate - [select for diffs], Mon Aug 12 00:52:36 2019 UTC (5 years, 8 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.107: +2 -1 lines
Diff to previous 1.107 (colored)
Fix regression from r1.107 (lost a return); kettenis@ pointed out the high potential for a use-after-free (true!) where kn@ ran into the regression using an app that actually exercised the XGrabPointer() failure path.
Revision 1.107 / (download) - annotate - [select for diffs], Mon Mar 4 19:28:18 2019 UTC (6 years, 1 month ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.106: +33 -51 lines
Diff to previous 1.106 (colored)
Separate out the menu window from the client resize/move geom window; in each case, create and destroy on-demand. Isolate more menu specific code.
Revision 1.106 / (download) - annotate - [select for diffs], Wed Nov 14 19:22:51 2018 UTC (6 years, 5 months ago) by okan
Branch: MAIN
Changes since 1.105: +2 -1 lines
Diff to previous 1.105 (colored)
Stop asking for events (NoEventMask) from menu window once done with the menu (we don't destroy it, only unmap).
Revision 1.105 / (download) - annotate - [select for diffs], Tue Dec 19 19:38:43 2017 UTC (7 years, 4 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.104: +4 -3 lines
Diff to previous 1.104 (colored)
Use a variable to keep track of flags for menu_filter().
Revision 1.104 / (download) - annotate - [select for diffs], Tue Dec 12 15:37:16 2017 UTC (7 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.103: +2 -7 lines
Diff to previous 1.103 (colored)
clean up after previous (noprompt removal)
Revision 1.103 / (download) - annotate - [select for diffs], Mon Dec 11 20:58:18 2017 UTC (7 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.102: +21 -43 lines
Diff to previous 1.102 (colored)
Unconditionally show prompt on menus, regardless of invocation.
Revision 1.102 / (download) - annotate - [select for diffs], Tue Apr 25 12:08:05 2017 UTC (8 years ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.101: +5 -11 lines
Diff to previous 1.101 (colored)
Remove 'noresult' (and simplify) as it does nothing and makes the logic around it needless. History doesn't show what this might have been used for in future iterations.
Revision 1.101 / (download) - annotate - [select for diffs], Tue Dec 6 21:59:33 2016 UTC (8 years, 4 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.100: +1 -3 lines
Diff to previous 1.100 (colored)
stray newlines
Revision 1.100 / (download) - annotate - [select for diffs], Tue Dec 6 21:54:10 2016 UTC (8 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.99: +3 -7 lines
Diff to previous 1.99 (colored)
Add search_print_text(), a default callback for mi->print in menu_filter(). While here, normalize the remaining search_print_* argument paramters.
Revision 1.99 / (download) - annotate - [select for diffs], Thu Dec 1 20:28:19 2016 UTC (8 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98 (colored)
Tame the number of 'exec' and 'path' search_match wrappers. No functional change now, though more can likely go later, losing the (paritally complete or incomplete/broken) argument completion bits.
Revision 1.98 / (download) - annotate - [select for diffs], Mon Oct 24 20:44:08 2016 UTC (8 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)
Make it clear these are flags.
Revision 1.97 / (download) - annotate - [select for diffs], Mon Oct 3 18:43:49 2016 UTC (8 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.96: +19 -22 lines
Diff to previous 1.96 (colored)
Start simplifying menu code; and in turn, remove a cursor no longer needed.
Revision 1.96 / (download) - annotate - [select for diffs], Fri Sep 30 18:28:06 2016 UTC (8 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.95: +12 -7 lines
Diff to previous 1.95 (colored)
Use instinsic X11 functions for key/btn/ptr grab/ungrab/regrab requests; the one line wrappers provided no value and limited altering calls where needed; additionally, most of them had but one caller.
Revision 1.95 / (download) - annotate - [select for diffs], Fri Sep 30 15:12:19 2016 UTC (8 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.94: +33 -1 lines
Diff to previous 1.94 (colored)
Replace mousefunc_sweep_draw() with a generic menu_windraw() using va lists; use it appropriately for both window dimension and position in the respective mousefunc calls. ok bryent@
Revision 1.94 / (download) - annotate - [select for diffs], Thu Sep 29 00:21:55 2016 UTC (8 years, 7 months ago) by okan
Branch: MAIN
Changes since 1.93: +16 -16 lines
Diff to previous 1.93 (colored)
Mechanical change: move screen menu bits to their own struct.
Revision 1.93 / (download) - annotate - [select for diffs], Wed Sep 28 17:06:33 2016 UTC (8 years, 7 months ago) by okan
Branch: MAIN
Changes since 1.92: +24 -10 lines
Diff to previous 1.92 (colored)
Inline Xft draw and extents wrappers; too much abstraction.
Revision 1.92 / (download) - annotate - [select for diffs], Tue Sep 20 19:58:54 2016 UTC (8 years, 7 months ago) by okan
Branch: MAIN
Changes since 1.91: +4 -1 lines
Diff to previous 1.91 (colored)
Allow ctrl-[ for abort (esc); from Benjamin Scher Purcell
Revision 1.91 / (download) - annotate - [select for diffs], Sun Aug 28 15:23:24 2016 UTC (8 years, 8 months ago) by okan
Branch: MAIN
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored)
Enable the use of numpad Enter key on menus; from Henrique N. Lengler. ok beck phessler
Revision 1.90 / (download) - annotate - [select for diffs], Thu Apr 28 16:28:38 2016 UTC (9 years ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0
Changes since 1.89: +5 -2 lines
Diff to previous 1.89 (colored)
If supplied format to menuq_add() is NULL, fill text with an empty string; found by Christian Neukirchen.
Revision 1.89 / (download) - annotate - [select for diffs], Wed Nov 11 14:22:01 2015 UTC (9 years, 5 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.88: +2 -4 lines
Diff to previous 1.88 (colored)
Partial revert of replacing screen_area() with region_find(); until a fix for a regression is found; this bug has been around for a long time it seems, but this change exposed it. Likely need to track clients in to and out of regions.
Revision 1.88 / (download) - annotate - [select for diffs], Mon Nov 9 20:03:29 2015 UTC (9 years, 5 months ago) by okan
Branch: MAIN
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)
Extend region to include both view and work areas; switch to region_find() which no longer needs to recalculate gap each time a client (or menu) is created or altered. If no RandR, fall back to display dimensions while building regions instead of during execution.
Revision 1.87 / (download) - annotate - [select for diffs], Sun Jul 12 14:21:09 2015 UTC (9 years, 9 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.86: +9 -16 lines
Diff to previous 1.86 (colored)
simplify menu print text
Revision 1.86 / (download) - annotate - [select for diffs], Wed Jul 1 14:36:42 2015 UTC (9 years, 9 months ago) by okan
Branch: MAIN
Changes since 1.85: +5 -6 lines
Diff to previous 1.85 (colored)
style
Revision 1.85 / (download) - annotate - [select for diffs], Tue Jun 30 18:42:50 2015 UTC (9 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.84: +4 -3 lines
Diff to previous 1.84 (colored)
style and spacing nits
Revision 1.84 / (download) - annotate - [select for diffs], Fri Jun 26 17:17:46 2015 UTC (9 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.83: +17 -17 lines
Diff to previous 1.83 (colored)
Mechanical change from xinerama to region backed areas.
Revision 1.83 / (download) - annotate - [select for diffs], Mon Jun 8 15:08:44 2015 UTC (9 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.82: +14 -17 lines
Diff to previous 1.82 (colored)
clean up
Revision 1.82 / (download) - annotate - [select for diffs], Fri Jun 5 18:43:36 2015 UTC (9 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.81: +33 -36 lines
Diff to previous 1.81 (colored)
use the same geometry struct in menus as everywhere else
Revision 1.81 / (download) - annotate - [select for diffs], Fri Jun 5 15:01:51 2015 UTC (9 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.80: +4 -2 lines
Diff to previous 1.80 (colored)
add a flag to indicate a menu list instead of overloading 'prompt'
Revision 1.80 / (download) - annotate - [select for diffs], Fri Jun 5 14:54:04 2015 UTC (9 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)
redundant check for 'list'
Revision 1.79 / (download) - annotate - [select for diffs], Sat Mar 28 22:09:10 2015 UTC (10 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.78: +6 -10 lines
Diff to previous 1.78 (colored)
Reshuffle and slightly simplify menu_complete_path(), removing an allocation, for tab-completion; checked by Alexander Polakov as well.
Revision 1.78 / (download) - annotate - [select for diffs], Mon Jan 19 14:54:16 2015 UTC (10 years, 3 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.77: +3 -2 lines
Diff to previous 1.77 (colored)
Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX and HOST_NAME_MAX+1, respectively. ok doug@
Revision 1.77 / (download) - annotate - [select for diffs], Sun Sep 7 19:27:30 2014 UTC (10 years, 7 months ago) by okan
Branch: MAIN
Changes since 1.76: +14 -14 lines
Diff to previous 1.76 (colored)
more style nits
Revision 1.76 / (download) - annotate - [select for diffs], Sat Sep 6 16:18:08 2014 UTC (10 years, 7 months ago) by okan
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)
style nit
Revision 1.75 / (download) - annotate - [select for diffs], Sat Feb 1 19:28:46 2014 UTC (11 years, 2 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)
Take menu's bwidth into account for position/size; reported by Thomas Adam.
Revision 1.74 / (download) - annotate - [select for diffs], Tue Jan 21 15:42:45 2014 UTC (11 years, 3 months ago) by okan
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)
Sprinkle a few more const; from Tiago Cunha.
Revision 1.73 / (download) - annotate - [select for diffs], Mon Jan 20 18:58:03 2014 UTC (11 years, 3 months ago) by okan
Branch: MAIN
Changes since 1.72: +18 -1 lines
Diff to previous 1.72 (colored)
Add a function that adds an entry to a menuq, normalizing a common code path; from Tiago Cunha.
Revision 1.72 / (download) - annotate - [select for diffs], Fri Jan 3 15:29:06 2014 UTC (11 years, 3 months ago) by okan
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)
use consistent types
Revision 1.71 / (download) - annotate - [select for diffs], Thu Jan 2 22:49:10 2014 UTC (11 years, 3 months ago) by okan
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)
calculate proper menu width/height on the first Expose event; 'jump' (while using gap) noticed by Christian Neukirchen
Revision 1.70 / (download) - annotate - [select for diffs], Tue Dec 17 16:10:43 2013 UTC (11 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)
replace with memset
Revision 1.69 / (download) - annotate - [select for diffs], Fri Dec 13 22:39:13 2013 UTC (11 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)
Teach screen_find_xinerama() to apply gap only when told to do so; adjust callers. Needed for an upcoming feature.
Revision 1.68 / (download) - annotate - [select for diffs], Mon Dec 2 20:01:19 2013 UTC (11 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.67: +1 -4 lines
Diff to previous 1.67 (colored)
When we receive a NotionNotify event, there's no need to (incorrectly might I add) redraw the top menu selection.
Revision 1.67 / (download) - annotate - [select for diffs], Mon Dec 2 19:49:26 2013 UTC (11 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.66: +3 -5 lines
Diff to previous 1.66 (colored)
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.
Revision 1.66 / (download) - annotate - [select for diffs], Mon Jun 17 17:11:10 2013 UTC (11 years, 10 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.65: +5 -4 lines
Diff to previous 1.65 (colored)
move Cursors into conf.
Revision 1.65 / (download) - annotate - [select for diffs], Mon May 20 21:32:00 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)
stray whitespace
Revision 1.64 / (download) - annotate - [select for diffs], Mon May 20 20:21:04 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.63: +4 -13 lines
Diff to previous 1.63 (colored)
- 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
Revision 1.63 / (download) - annotate - [select for diffs], Mon May 20 20:04:36 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.62: +32 -34 lines
Diff to previous 1.62 (colored)
no reason to pass around *sc when it's already in menu_ctx.
Revision 1.62 / (download) - annotate - [select for diffs], Sun May 19 23:38:21 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.61: +6 -6 lines
Diff to previous 1.61 (colored)
move the 2 small font helper functions to xutil.c
Revision 1.61 / (download) - annotate - [select for diffs], Tue May 14 12:35:56 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored)
- 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.
Revision 1.60 / (download) - annotate - [select for diffs], Fri May 10 16:10:40 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)
spacing
Revision 1.59 / (download) - annotate - [select for diffs], Tue May 7 01:35:41 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.58: +4 -2 lines
Diff to previous 1.58 (colored)
border width/color makes sense for some, so put it back
Revision 1.58 / (download) - annotate - [select for diffs], Mon May 6 16:00:34 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.57: +2 -4 lines
Diff to previous 1.57 (colored)
border width/color makes no sense on menuwin
Revision 1.57 / (download) - annotate - [select for diffs], Thu May 2 20:18:35 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.56: +10 -17 lines
Diff to previous 1.56 (colored)
- 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.
Revision 1.56 / (download) - annotate - [select for diffs], Thu May 2 19:41:52 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.55: +1 -2 lines
Diff to previous 1.55 (colored)
zap leftover debug printf
Revision 1.55 / (download) - annotate - [select for diffs], Thu May 2 17:25:15 2013 UTC (11 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.54: +19 -15 lines
Diff to previous 1.54 (colored)
no need for font_{ascent,descent,height} wrappers; limit font_width to just requiring xftfont.
Revision 1.54 / (download) - annotate - [select for diffs], Mon Apr 8 13:02:31 2013 UTC (12 years ago) by okan
Branch: MAIN
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored)
consistency
Revision 1.53 / (download) - annotate - [select for diffs], Mon Apr 8 00:56:21 2013 UTC (12 years ago) by okan
Branch: MAIN
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)
missing prototype
Revision 1.52 / (download) - annotate - [select for diffs], Fri Apr 5 17:07:25 2013 UTC (12 years ago) by okan
Branch: MAIN
Changes since 1.51: +8 -8 lines
Diff to previous 1.51 (colored)
zap stray whitespace
Revision 1.51 / (download) - annotate - [select for diffs], Mon Jan 7 21:53:23 2013 UTC (12 years, 3 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.50: +3 -1 lines
Diff to previous 1.50 (colored)
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.
Revision 1.50 / (download) - annotate - [select for diffs], Wed Jan 2 16:26:34 2013 UTC (12 years, 3 months ago) by okan
Branch: MAIN
Changes since 1.49: +14 -25 lines
Diff to previous 1.49 (colored)
have screen_find_xinerama() return struct geom *reliably* instead of XineramaScreenInfo; simplifies goop around the callers.
Revision 1.49 / (download) - annotate - [select for diffs], Wed Jan 2 02:19:20 2013 UTC (12 years, 3 months ago) by okan
Branch: MAIN
Changes since 1.48: +11 -11 lines
Diff to previous 1.48 (colored)
more variable consistency
Revision 1.48 / (download) - annotate - [select for diffs], Mon Dec 17 14:32:39 2012 UTC (12 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.47: +13 -5 lines
Diff to previous 1.47 (colored)
create and use menuq_clear() helper; from Tiago Cunha
Revision 1.47 / (download) - annotate - [select for diffs], Mon Dec 17 02:53:29 2012 UTC (12 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.46: +7 -7 lines
Diff to previous 1.46 (colored)
knf
Revision 1.46 / (download) - annotate - [select for diffs], Mon Dec 17 02:28:45 2012 UTC (12 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.45: +50 -31 lines
Diff to previous 1.45 (colored)
non-trivial menu drawing rewrite, moving to Xft and solving various font/color drawing issues; from Alexander Polakov
Revision 1.45 / (download) - annotate - [select for diffs], Wed Nov 14 21:12:24 2012 UTC (12 years, 5 months ago) by okan
Branch: MAIN
Changes since 1.44: +1 -3 lines
Diff to previous 1.44 (colored)
tab-complete buglet fix: once exec_path is completed, allow for subsequent completion; from Alexander Polakov
Revision 1.44 / (download) - annotate - [select for diffs], Fri Nov 9 03:52:02 2012 UTC (12 years, 5 months ago) by okan
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)
sort
Revision 1.43 / (download) - annotate - [select for diffs], Wed Nov 7 20:34:39 2012 UTC (12 years, 5 months ago) by okan
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)
get rid of the xfree() wrapper around free(); from Tiago Cunha.
Revision 1.42 / (download) - annotate - [select for diffs], Wed Nov 7 14:39:44 2012 UTC (12 years, 5 months ago) by okan
Branch: MAIN
Changes since 1.41: +74 -4 lines
Diff to previous 1.41 (colored)
tab completion support for menus; from Alexander Polakov. ok sthen@ on an older incarnation
Revision 1.41 / (download) - annotate - [select for diffs], Wed Oct 31 19:30:19 2012 UTC (12 years, 5 months ago) by okan
Branch: MAIN
Changes since 1.40: +1 -5 lines
Diff to previous 1.40 (colored)
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
Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 23 16:13:59 2012 UTC (12 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.39: +2 -3 lines
Diff to previous 1.39 (colored)
comment what this whole bit does, not just part of it.
Revision 1.39 / (download) - annotate - [select for diffs], Tue Oct 23 16:08:59 2012 UTC (12 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.38: +11 -9 lines
Diff to previous 1.38 (colored)
add a height to struct menu and use it in the most obvious of places.
Revision 1.38 / (download) - annotate - [select for diffs], Tue Oct 23 15:50:15 2012 UTC (12 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.37: +6 -4 lines
Diff to previous 1.37 (colored)
treat menu width the same as the height is treated when deciding its max size and location; partially from a diff from Alexander Polakov.
Revision 1.37 / (download) - annotate - [select for diffs], Tue Oct 23 15:32:38 2012 UTC (12 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.36: +7 -2 lines
Diff to previous 1.36 (colored)
Stop drawing when menu doesn't fit inside the screen; picked from a larger diff from Alexander Polakov.
Revision 1.36 / (download) - annotate - [select for diffs], Tue Aug 7 14:05:49 2012 UTC (12 years, 8 months ago) by okan
Branch: MAIN
Changes since 1.35: +20 -22 lines
Diff to previous 1.35 (colored)
support multibyte input to menu code; from Alexander Polakov with a tiny tweak.
Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 13 15:21:35 2012 UTC (12 years, 9 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)
convert xmax/ymax uses to view geometry.
Revision 1.34 / (download) - annotate - [select for diffs], Wed May 16 01:04:36 2012 UTC (12 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)
convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym ok sthen@
Revision 1.33 / (download) - annotate - [select for diffs], Thu Sep 8 12:00:50 2011 UTC (13 years, 7 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.32: +5 -1 lines
Diff to previous 1.32 (colored)
reinit menu on reload; from Alexander Polakov. needed for catching upcoming menu config changes. ok oga@
Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 25 15:41:05 2011 UTC (13 years, 9 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored)
use the menu border; from Alexander Polakov, but with the existing define. ok oga@
Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 25 15:10:24 2011 UTC (13 years, 9 months ago) by okan
Branch: MAIN
Changes since 1.30: +10 -10 lines
Diff to previous 1.30 (colored)
We are inconsistent when it comes to function returns, so just go all the way with the cwm specific parts. ok oga@
Revision 1.30 / (download) - annotate - [select for diffs], Sat Jul 23 13:09:11 2011 UTC (13 years, 9 months ago) by okan
Branch: MAIN
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)
Clarify defines and make them not look like non-local ones; started by a small diff from Thomas Pfaff. ok oga@
Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 27 12:46:54 2011 UTC (13 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.28: +6 -6 lines
Diff to previous 1.28 (colored)
UTF8-ify, from Alexander Polakov, but without setlocale(), after feedback from stsp@ - thanks! 'go for it' oga@
Revision 1.28 / (download) - annotate - [select for diffs], Fri Jun 24 06:52:23 2011 UTC (13 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)
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@
Revision 1.27 / (download) - annotate - [select for diffs], Wed May 11 13:53:51 2011 UTC (13 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.26: +4 -0 lines
Diff to previous 1.26 (colored)
tag and comment cleanup; ok oga@
Revision 1.26 / (download) - annotate - [select for diffs], Thu May 5 15:32:24 2011 UTC (13 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.25: +27 -10 lines
Diff to previous 1.25 (colored)
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@
Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 22 13:50:40 2011 UTC (14 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.24: +8 -0 lines
Diff to previous 1.24 (colored)
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@
Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 22 11:09:52 2011 UTC (14 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)
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@
Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 22 11:05:13 2011 UTC (14 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)
fix nousance of always highlighting the first entry even when there is no match (seen in the ctrl-a case) ok oga@
Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 22 11:03:05 2011 UTC (14 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)
move the default case to the end. ok oga@
Revision 1.21 / (download) - annotate - [select for diffs], Tue Mar 22 10:47:59 2011 UTC (14 years, 1 month ago) by okan
Branch: MAIN
Changes since 1.20: +95 -2 lines
Diff to previous 1.20 (colored)
move the single keycode function directly into the menu code. ok oga@
Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 10 01:23:05 2010 UTC (15 years, 2 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.19: +2 -0 lines
Diff to previous 1.19 (colored)
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@
Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 15 04:10:42 2009 UTC (15 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.18: +10 -0 lines
Diff to previous 1.18 (colored)
pull all non-X11 headers from calmwm.h and place them only where they are required. encourged to go all the way by oga@
Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 15 03:24:36 2009 UTC (15 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.17: +0 -1 lines
Diff to previous 1.17 (colored)
merge the 2 common header files; specific includes to be pulled out as separate commits. ok oga@
Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 10 17:16:51 2009 UTC (15 years, 4 months ago) by oga
Branch: MAIN
Changes since 1.16: +2 -4 lines
Diff to previous 1.16 (colored)
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@.
Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 8 16:52:17 2009 UTC (15 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.15: +15 -15 lines
Diff to previous 1.15 (colored)
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@
Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 7 19:48:08 2009 UTC (15 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored)
fix off-by-one where a mere click would select the first item inside a menu from Thomas Pfaff ok oga@
Revision 1.14 / (download) - annotate - [select for diffs], Sat Nov 28 17:52:12 2009 UTC (15 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)
style (whitespaces) ok oga, okan
Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 5 14:10:11 2009 UTC (15 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)
style ok oga
Revision 1.12 / (download) - annotate - [select for diffs], Fri Jun 26 12:21:58 2009 UTC (15 years, 10 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)
static local functions and data; almost identical diff from Thomas Pfaff ok oga@
Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 20 00:22:39 2009 UTC (15 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)
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@
Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 17 12:30:17 2009 UTC (15 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.9: +0 -5 lines
Diff to previous 1.9 (colored)
move like defines to a central, logical location; no binary change. aok oga@
Revision 1.9 / (download) - annotate - [select for diffs], Sat May 30 00:29:08 2009 UTC (15 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)
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@
Revision 1.8 / (download) - annotate - [select for diffs], Sun May 17 23:40:57 2009 UTC (15 years, 11 months ago) by okan
Branch: MAIN
Changes since 1.7: +13 -2 lines
Diff to previous 1.7 (colored)
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@
Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 28 16:38:54 2009 UTC (16 years, 1 month ago) by martynas
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)
- avoid shadowed Mask declaration in menu_filter - make _xev_reincorporate static evmask naming oga@, input okan@. ok okan@, oga@
Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 11 14:21:28 2008 UTC (16 years, 9 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.5: +8 -7 lines
Diff to previous 1.5 (colored)
spacing, declaration lineup to be consistent throughout cwm, readability, and a bit of knf. ok oga@
Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 15 02:47:46 2008 UTC (16 years, 10 months ago) by oga
Branch: MAIN
Changes since 1.4: +16 -20 lines
Diff to previous 1.4 (colored)
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@.
Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 5 04:01:37 2008 UTC (16 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)
prevent trying to exec a null char; could potentially happen with a canceled or empty searchstr. ok oga@
Revision 1.3 / (download) - annotate - [select for diffs], Fri May 23 18:48:57 2008 UTC (16 years, 11 months ago) by oga
Branch: MAIN
Changes since 1.2: +5 -0 lines
Diff to previous 1.2 (colored)
Grab the keyboard when we initialise the menu. This stops the keyboard shortcut code stealing our events in some cases. "put 'er in" okan@.
Revision 1.2 / (download) - annotate - [select for diffs], Wed May 21 14:11:19 2008 UTC (16 years, 11 months ago) by oga
Branch: MAIN
Changes since 1.1: +137 -32 lines
Diff to previous 1.1 (colored)
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@.
Revision 1.1 / (download) - annotate - [select for diffs], Tue May 20 14:50:51 2008 UTC (16 years, 11 months ago) by oga
Branch: MAIN
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@.