aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Take menu's bwidth into account for position/size; reported by Thomas Adam.okan2014-02-01-3/+3
|
* Let the config parser continue parsing even after encountering an error;okan2014-02-01-13/+20
| | | | | | | | original idea (with now-outdated patch) from Thomas Adam. Since we now report where errors exist, this now makes more sense. Expand a bit on config file parsing in the cwm(1). Discussed with a few, including sthen; ok sthen.
* re-add lost free from previousokan2014-01-30-1/+2
|
* Switch ignoreq to winname struct since it's basically the same thing;okan2014-01-30-36/+20
| | | | removes limit on name matching.
* use the same autogroupwin variable as everywhere elseokan2014-01-30-7/+7
|
* Move cwm_status around to avoid header fu, and remove extraneous signalokan2014-01-30-5/+5
| | | | header from xevents.c; noticed by Christian Neukirchen.
* Remove duplicate mouse functions and instead use the kbfunc ones. Nookan2014-01-30-41/+8
| | | | | user visable changes at this point, but they'll merge at an appropriate time.
* Minimize trivial differences between a few kb and mb functions.okan2014-01-29-14/+13
|
* keybinding -> key bindingokan2014-01-29-8/+8
|
* Merge keybinding and mousebinding queues into using the same mergedokan2014-01-29-46/+41
| | | | | struct, binding; they were essentially the same accept for what was 'pressed', keysym or button.
* Much like we do for keyboard and mouse bindings, remove duplicates forokan2014-01-29-1/+16
| | | | command name - last match.
* Check command name/path for truncation and provide user feedback duringokan2014-01-29-18/+33
| | | | | | config parse (and use conf_cmd_add to populate defaults); based on a discussion with Tiago Cunha. While this looks ugly, there are likely some other changes here to come.
* Check ignore windowname for truncation and provide user feedback duringokan2014-01-28-7/+13
| | | | config parse; based on a discussion with Tiago Cunha.
* The EWMH spec states that if the cardinal returned is 0xFFFFFFFF (-1)okan2014-01-28-3/+12
| | | | | | then the window should appear on all desktops, which in our case is assigned to group 0. Found to fix stalonetray due to the non-ewmh aware range checking in group_movetogroup(); from Thomas Adam.
* Move conf_init/clear into main - no behaviour change; from Tiago Cunha.okan2014-01-28-9/+7
|
* move some init up and shed some blank linesokan2014-01-27-8/+5
|
* simplify parse_config using assignment; inspired by a very old diff fromokan2014-01-27-58/+3
| | | | Tiago Cunha.
* more range checkingokan2014-01-24-5/+8
|
* correct arguments and drop the cast.okan2014-01-24-2/+2
| | | | sanity check by oga@nicotinebsd
* no need to quote within warningokan2014-01-23-3/+3
|
* If no title is supplied, term uses only the basename for its title.okan2014-01-23-3/+3
| | | | | | | This is useless when searching for windows launched via the ssh command menu; supply a more useful title: '[ssh] <hostname>'. Idea from todd@, ok todd@
* zap whitespaceokan2014-01-22-26/+26
|
* cwm_argv doesn't need to be global any longerokan2014-01-22-6/+6
|
* start properly releasing X resources during teardownokan2014-01-22-1/+20
|
* Somewhat streamline event loop/restart/quit handling; most notableokan2014-01-22-33/+36
| | | | | | | | change allows a restart to trigger proper teardown first, even though teardown is not (yet) complete. After some discussion with oga@nicotinebsd.org regarding a more complicated version/idea.
* Sprinkle a few more const; from Tiago Cunha.okan2014-01-21-22/+23
|
* Save the ptr position before lowering via kbd, so as to be able to cycleokan2014-01-20-1/+2
| | | | | back with the pointer in the right place; matches behaviour when lowering via the mouse function.
* merge KBFLAG_NEEDCLIENT and MOUSEBIND_CTX_*; brings kbfunc and mousefuncokan2014-01-20-77/+61
| | | | bits even closer.
* Use argument to pass down flags for mousefunc cyclegroup; removesokan2014-01-20-15/+8
| | | | rcyclegroup wrapper need - now similar to kbfunc.
* constify and rename some confusing variables around cmdq.okan2014-01-20-25/+26
|
* - remove redundant range check for buttons in conf_bind_mouse.okan2014-01-20-67/+64
| | | | | | | | | - make conf_bind_kbd return error on non-matches to match what conf_bind_mouse does. - rename some variables while here for clarity. - constify bind and cmd. from Tiago Cunha.
* Add a function that adds an entry to a menuq, normalizing a common codeokan2014-01-20-55/+40
| | | | path; from Tiago Cunha.
* use consistent typesokan2014-01-03-52/+52
|
* state is longokan2014-01-03-2/+2
|
* calculate proper menu width/height on the first Expose event; 'jump' (while ↵okan2014-01-02-3/+3
| | | | using gap) noticed by Christian Neukirchen
* Accept _NET_CURRENT_DESKTOP ClientMessage; from Thomas Adam, thoughokan2014-01-02-2/+8
| | | | instead of group toggle, group only.
* Accept _NET_WM_DESKTOP clientmessage; from Thomas Adamokan2014-01-02-1/+5
|
* bring mousefunc closer to kbfuncokan2014-01-02-42/+52
|
* gc keycode in keybinding since we only deal with keysym nowokan2014-01-02-2/+1
|
* rename for clarityokan2014-01-02-5/+5
|
* When a client doesn't specify size hints, nothing prevents a resize tookan2014-01-02-1/+4
| | | | | | | 0x0 - don't allow this situation during mouse resize (check already in place for kbd resize). Reported by brynet@
* missing stdarg.h includeokan2013-12-17-1/+2
|
* replace with memsetokan2013-12-17-9/+9
|
* Implement support for EWMH's _NET_WM_STATE_FULLSCREEN hint.okan2013-12-16-43/+85
| | | | | | | | | | | | | | | | Since we already have a form of 'maximize', we need to differentiate between 'maximize' and the new 'fullscreen' mode. The 'maximize' mode will continue to honor gap but now *retains* the border, matching the 'vert/horz maximize' behaviour. The new 'fullscreen' mode supports and follows the _NET_WM_STATE_FULLSCREEN hint, allowing the client perform additional window modifications; in this mode, cwm(1) will *ignore* gap, remove borders and freeze(move/resize) the client. Additionally, 'fullscreen' mode will remember various combinations of previous states. * default keybinding changes: CM-f 'fullscreen', CM-m 'maximize' (re-map as desired). Positive feedback from a few, testing and ok sthen@
* Teach screen_find_xinerama() to apply gap only when told to do so;okan2013-12-13-21/+31
| | | | adjust callers. Needed for an upcoming feature.
* Instead of using work area, use the Xinerama area for snap calculations;okan2013-12-13-6/+14
| | | | based on a patch from Thomas Adam with appropriate adjustments for gap.
* we need the save-set when re-exec'ing so as to not lose State on our hidden ↵okan2013-12-13-1/+3
| | | | clients
* stray space and sort while hereokan2013-12-13-5/+4
|
* Add support for XUrgency and matching _NET_WM_STATE_DEMANDS_ATTENTIONokan2013-12-13-11/+47
| | | | | | | ewmh hint; urgencyborder is configurable. The urgency flag will stick, even while on a client in a non-viewable group, until the client receives focus (where the border is reset). Initial diff from Thomas Adam with some changes/enhancements from me.
* Make sure we really take work area gap into account with snap calculations;okan2013-12-12-6/+6
| | | | from Dominik Honnef via Christian Neukirchen.