Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Remove path completion in the exec menu | Wynn Wolf Arbor | 2021-04-27 | -39/+0 |
| | | | | | | | | | | | | | There are a couple of issues I found with this functionality: 1) To my knowledge, it is undocumented and extremely specific. 2) Since this function would only complete a full path (by wrapping it in quotes before passing it on), it is entirely useless when composing a command that has more than one argument. 3) The snprintf call has no check for truncation, possibly leading to the path not being quoted properly. | |||
* | Add BSD compatibility functions and headers | Wynn Wolf Arbor | 2021-04-27 | -1/+1 |
| | | | | | | | | | Original file locations in the OpenBSD tree: - lib/libc/stdlib/reallocarray.c - lib/libc/stdlib/strtonum.c - lib/libc/string/strlcat.c - lib/libc/string/strlcpy.c - sys/sys/queue.h | |||
* | Unrelated style fixes, consistency changes and sorting, appropriate ↵ | okan | 2020-03-18 | -19/+19 |
| | | | | dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions. | |||
* | Fix regression from r1.107 (lost a return); kettenis@ pointed out the high ↵ | okan | 2019-08-24 | -1/+2 |
| | | | | potential for a use-after-free (true!) where kn@ ran into the regression using an app that actually exercised the XGrabPointer() failure path. | |||
* | Separate out the menu window from the client resize/move geom window; in each | okan | 2019-03-04 | -51/+33 |
| | | | | case, create and destroy on-demand. Isolate more menu specific code. | |||
* | Stop asking for events (NoEventMask) from menu window once done with | okan | 2018-11-14 | -1/+2 |
| | | | | the menu (we don't destroy it, only unmap). | |||
* | Use a variable to keep track of flags for menu_filter(). | okan | 2017-12-19 | -3/+4 |
| | ||||
* | clean up after previous (noprompt removal) | okan | 2017-12-12 | -7/+2 |
| | ||||
* | Unconditionally show prompt on menus, regardless of invocation. | okan | 2017-12-11 | -43/+21 |
| | ||||
* | Remove 'noresult' (and simplify) as it does nothing and makes the logic around | okan | 2017-04-25 | -11/+5 |
| | | | | | it needless. History doesn't show what this might have been used for in future iterations. | |||
* | stray newlines | okan | 2016-12-06 | -3/+1 |
| | ||||
* | Add search_print_text(), a default callback for mi->print in menu_filter(). ↵ | okan | 2016-12-06 | -7/+3 |
| | | | | | | While here, normalize the remaining search_print_* argument paramters. | |||
* | Tame the number of 'exec' and 'path' search_match wrappers. No functional | okan | 2016-12-01 | -2/+2 |
| | | | | | change now, though more can likely go later, losing the (paritally complete or incomplete/broken) argument completion bits. | |||
* | Make it clear these are flags. | okan | 2016-10-24 | -2/+2 |
| | ||||
* | Start simplifying menu code; and in turn, remove a cursor no longer | okan | 2016-10-03 | -22/+19 |
| | | | | needed. | |||
* | Use instinsic X11 functions for key/btn/ptr grab/ungrab/regrab requests; | okan | 2016-09-30 | -7/+12 |
| | | | | | the one line wrappers provided no value and limited altering calls where needed; additionally, most of them had but one caller. | |||
* | Replace mousefunc_sweep_draw() with a generic menu_windraw() using va | okan | 2016-09-30 | -1/+33 |
| | | | | | | | lists; use it appropriately for both window dimension and position in the respective mousefunc calls. ok bryent@ | |||
* | Mechanical change: move screen menu bits to their own struct. | okan | 2016-09-29 | -16/+16 |
| | ||||
* | Inline Xft draw and extents wrappers; too much abstraction. | okan | 2016-09-28 | -10/+24 |
| | ||||
* | Allow ctrl-[ for abort (esc); from Benjamin Scher Purcell | okan | 2016-09-20 | -1/+4 |
| | ||||
* | Enable the use of numpad Enter key on menus; from Henrique N. Lengler. | okan | 2016-08-28 | -1/+2 |
| | | | | ok beck phessler | |||
* | If supplied format to menuq_add() is NULL, fill text with an empty | okan | 2016-04-28 | -2/+5 |
| | | | | string; found by Christian Neukirchen. | |||
* | Partial revert of replacing screen_area() with region_find(); until a | okan | 2015-11-11 | -4/+2 |
| | | | | | | 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. | |||
* | Extend region to include both view and work areas; switch to | okan | 2015-11-09 | -2/+4 |
| | | | | | | | 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. | |||
* | simplify menu print text | okan | 2015-07-12 | -16/+9 |
| | ||||
* | style | okan | 2015-07-01 | -6/+5 |
| | ||||
* | style and spacing nits | okan | 2015-06-30 | -3/+4 |
| | ||||
* | Mechanical change from xinerama to region backed areas. | okan | 2015-06-26 | -16/+16 |
| | ||||
* | clean up | okan | 2015-06-08 | -17/+14 |
| | ||||
* | use the same geometry struct in menus as everywhere else | okan | 2015-06-05 | -35/+32 |
| | ||||
* | add a flag to indicate a menu list instead of overloading 'prompt' | okan | 2015-06-05 | -2/+4 |
| | ||||
* | redundant check for 'list' | okan | 2015-06-05 | -2/+2 |
| | ||||
* | Reshuffle and slightly simplify menu_complete_path(), removing an | okan | 2015-03-28 | -10/+6 |
| | | | | allocation, for tab-completion; checked by Alexander Polakov as well. | |||
* | Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX | okan | 2015-01-19 | -2/+3 |
| | | | | | | and HOST_NAME_MAX+1, respectively. ok doug@ | |||
* | more style nits | okan | 2014-09-07 | -14/+14 |
| | ||||
* | style nit | okan | 2014-09-06 | -3/+3 |
| | ||||
* | Take menu's bwidth into account for position/size; reported by Thomas Adam. | okan | 2014-02-01 | -3/+3 |
| | ||||
* | Sprinkle a few more const; from Tiago Cunha. | okan | 2014-01-21 | -3/+3 |
| | ||||
* | Add a function that adds an entry to a menuq, normalizing a common code | okan | 2014-01-20 | -1/+18 |
| | | | | path; from Tiago Cunha. | |||
* | use consistent types | okan | 2014-01-03 | -3/+3 |
| | ||||
* | calculate proper menu width/height on the first Expose event; 'jump' (while ↵ | okan | 2014-01-02 | -3/+3 |
| | | | | using gap) noticed by Christian Neukirchen | |||
* | replace with memset | okan | 2013-12-17 | -2/+2 |
| | ||||
* | Teach screen_find_xinerama() to apply gap only when told to do so; | okan | 2013-12-13 | -2/+2 |
| | | | | adjust callers. Needed for an upcoming feature. | |||
* | When we receive a NotionNotify event, there's no need to (incorrectly | okan | 2013-12-02 | -4/+1 |
| | | | | might I add) redraw the top menu selection. | |||
* | Always highlight the first menu item (helpful to see selected items when | okan | 2013-12-02 | -5/+3 |
| | | | | | not using a mouse and therefore not generating Expose/MotionNotify events); from Thomas Adam. | |||
* | move Cursors into conf. | okan | 2013-06-17 | -4/+5 |
| | ||||
* | stray whitespace | okan | 2013-05-20 | -2/+2 |
| | ||||
* | - configure menuwin with the screen, then create the xft drawable using | okan | 2013-05-20 | -13/+4 |
| | | | | | the menu window since that's the only place on which we draw - elminate the need to change the drawable on every font draw | |||
* | no reason to pass around *sc when it's already in menu_ctx. | okan | 2013-05-20 | -34/+32 |
| | ||||
* | move the 2 small font helper functions to xutil.c | okan | 2013-05-19 | -6/+6 |
| |