summaryrefslogtreecommitdiff
path: root/app
AgeCommit message (Collapse)Author
2014-02-01Let the config parser continue parsing even after encountering an error;Okan Demirmen
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.
2014-01-30re-add lost free from previousOkan Demirmen
2014-01-30Switch ignoreq to winname struct since it's basically the same thing;Okan Demirmen
removes limit on name matching.
2014-01-30use the same autogroupwin variable as everywhere elseOkan Demirmen
2014-01-30Move cwm_status around to avoid header fu, and remove extraneous signalOkan Demirmen
header from xevents.c; noticed by Christian Neukirchen.
2014-01-30Remove duplicate mouse functions and instead use the kbfunc ones. NoOkan Demirmen
user visable changes at this point, but they'll merge at an appropriate time.
2014-01-29Minimize trivial differences between a few kb and mb functions.Okan Demirmen
2014-01-29keybinding -> key bindingOkan Demirmen
2014-01-29Merge keybinding and mousebinding queues into using the same mergedOkan Demirmen
struct, binding; they were essentially the same accept for what was 'pressed', keysym or button.
2014-01-29Much like we do for keyboard and mouse bindings, remove duplicates forOkan Demirmen
command name - last match.
2014-01-29Check command name/path for truncation and provide user feedback duringOkan Demirmen
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.
2014-01-28Check ignore windowname for truncation and provide user feedback duringOkan Demirmen
config parse; based on a discussion with Tiago Cunha.
2014-01-28The EWMH spec states that if the cardinal returned is 0xFFFFFFFF (-1)Okan Demirmen
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.
2014-01-28Move conf_init/clear into main - no behaviour change; from Tiago Cunha.Okan Demirmen
2014-01-27move some init up and shed some blank linesOkan Demirmen
2014-01-27simplify parse_config using assignment; inspired by a very old diff fromOkan Demirmen
Tiago Cunha.
2014-01-24more range checkingOkan Demirmen
2014-01-24correct arguments and drop the cast.Okan Demirmen
sanity check by oga@nicotinebsd
2014-01-23no need to quote within warningOkan Demirmen
2014-01-23If no title is supplied, term uses only the basename for its title.Okan Demirmen
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@
2014-01-22zap whitespaceOkan Demirmen
2014-01-22cwm_argv doesn't need to be global any longerOkan Demirmen
2014-01-22start properly releasing X resources during teardownOkan Demirmen
2014-01-22Somewhat streamline event loop/restart/quit handling; most notableOkan Demirmen
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.
2014-01-21Sprinkle a few more const; from Tiago Cunha.Okan Demirmen
2014-01-20Save the ptr position before lowering via kbd, so as to be able to cycleOkan Demirmen
back with the pointer in the right place; matches behaviour when lowering via the mouse function.
2014-01-20merge KBFLAG_NEEDCLIENT and MOUSEBIND_CTX_*; brings kbfunc and mousefuncOkan Demirmen
bits even closer.
2014-01-20Use argument to pass down flags for mousefunc cyclegroup; removesOkan Demirmen
rcyclegroup wrapper need - now similar to kbfunc.
2014-01-20constify and rename some confusing variables around cmdq.Okan Demirmen
2014-01-20 - remove redundant range check for buttons in conf_bind_mouse.Okan Demirmen
- 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.
2014-01-20Add a function that adds an entry to a menuq, normalizing a common codeOkan Demirmen
path; from Tiago Cunha.
2014-01-18OpenBSD needs the same treatment as FreeBSD to avoid xterm -holdMatthieu Herrb
chewing CPU cycles. Reported by Kevin Chadwick.
2014-01-05Missing files for xauth 1.0.8Matthieu Herrb
2014-01-04Update to xauth 1.0.8Matthieu Herrb
2014-01-03use consistent typesOkan Demirmen
2014-01-03state is longOkan Demirmen
2014-01-02calculate proper menu width/height on the first Expose event; 'jump' (while ↵Okan Demirmen
using gap) noticed by Christian Neukirchen
2014-01-02Accept _NET_CURRENT_DESKTOP ClientMessage; from Thomas Adam, thoughOkan Demirmen
instead of group toggle, group only.
2014-01-02Accept _NET_WM_DESKTOP clientmessage; from Thomas AdamOkan Demirmen
2014-01-02bring mousefunc closer to kbfuncOkan Demirmen
2014-01-02gc keycode in keybinding since we only deal with keysym nowOkan Demirmen
2014-01-02rename for clarityOkan Demirmen
2014-01-02When a client doesn't specify size hints, nothing prevents a resize toOkan Demirmen
0x0 - don't allow this situation during mouse resize (check already in place for kbd resize). Reported by brynet@
2014-01-02Don't play with libxcursor if XCURSOR_THEM is defined.Matthieu Herrb
2014-01-02Update to xterm-300. Tested by ajacoutot@ and shadchin@.Matthieu Herrb
2013-12-17missing stdarg.h includeOkan Demirmen
2013-12-17replace with memsetOkan Demirmen
2013-12-16Implement support for EWMH's _NET_WM_STATE_FULLSCREEN hint.Okan Demirmen
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@
2013-12-13Teach screen_find_xinerama() to apply gap only when told to do so;Okan Demirmen
adjust callers. Needed for an upcoming feature.
2013-12-13Instead of using work area, use the Xinerama area for snap calculations;Okan Demirmen
based on a patch from Thomas Adam with appropriate adjustments for gap.