summaryrefslogtreecommitdiff
path: root/app/cwm
AgeCommit message (Collapse)Author
2014-02-07all mapped clients now should have a group, so simplify some casesOkan Demirmen
2014-02-07If _NET_WM_DESKTOP is set to -1 during client creation, place the client intoOkan Demirmen
group 0 (nogroup); solves problem initially discovered by oga@nicotinebsd with tint2. A clientmessage *after* client creation already handles this case. Go further and assign every client to a group; in non-sticky mode, group 0 (nogroup) and sticky mode, the active group. In both cases, autogroup will override the group assignment. Removing a group from a client always places the client back into group 0 (nogroup). Autogroup can also assign a client to group 0 (nogroup) to keep a client always visible (unless of course one opts to hide all clients).
2014-02-06Some clients set the urgency flag even if they are the active client;Okan Demirmen
prevent annoying behavior by only setting the cwm urgency flag if the client is not active; diff from Thomas Adam.
2014-02-03Introduce a region queue and replace screen's XineramaScreenInfo; weOkan Demirmen
still use Xinerama to populate the regions per screen, but will switch at a more appropriate time.
2014-02-03make this XQueryTree like the otherOkan Demirmen
2014-02-03Move redundant bits from screen_init (while dealing with existingOkan Demirmen
clients) directly into client_init, performing the X roundtrip only once. With the previous change in maprequest, this moves decision making into one place for creating new clients.
2014-02-02Move redundant window attr fetch from maprequest directly intoOkan Demirmen
client_init and perform that X roundtrip only once.
2014-02-02No need to store screen colormap and visual; rather just use the XOkan Demirmen
macros in the one place they are needed.
2014-02-02Unlike free(3), XFree(3) can't be passed a NULL pointer.Okan Demirmen
2014-02-02The menu already limits entries with MENU_MAXENTRY, so don't botherOkan Demirmen
holding a command name limit as well.
2014-02-01Take menu's bwidth into account for position/size; reported by Thomas Adam.Okan Demirmen
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-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