summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* all mapped clients now should have a group, so simplify some casesokan2014-02-073-7/+3
|
* If _NET_WM_DESKTOP is set to -1 during client creation, place the client intookan2014-02-071-28/+12
| | | | | | | | | | | | 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).
* Some clients set the urgency flag even if they are the active client;okan2014-02-061-1/+2
| | | | | prevent annoying behavior by only setting the cwm urgency flag if the client is not active; diff from Thomas Adam.
* Introduce a region queue and replace screen's XineramaScreenInfo; weokan2014-02-032-24/+34
| | | | | still use Xinerama to populate the regions per screen, but will switch at a more appropriate time.
* make this XQueryTree like the otherokan2014-02-031-12/+10
|
* Move redundant bits from screen_init (while dealing with existingokan2014-02-034-15/+17
| | | | | | 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.
* Move redundant window attr fetch from maprequest directly intookan2014-02-022-7/+7
| | | | client_init and perform that X roundtrip only once.
* No need to store screen colormap and visual; rather just use the Xokan2014-02-024-11/+9
| | | | macros in the one place they are needed.
* Unlike free(3), XFree(3) can't be passed a NULL pointer.okan2014-02-021-2/+2
|
* The menu already limits entries with MENU_MAXENTRY, so don't botherokan2014-02-022-9/+8
| | | | holding a command name limit as well.
* Take menu's bwidth into account for position/size; reported by Thomas Adam.okan2014-02-011-2/+2
|
* Let the config parser continue parsing even after encountering an error;okan2014-02-012-11/+18
| | | | | | | | 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-301-0/+1
|
* Switch ignoreq to winname struct since it's basically the same thing;okan2014-01-303-33/+17
| | | | removes limit on name matching.
* use the same autogroupwin variable as everywhere elseokan2014-01-301-11/+11
|
* Move cwm_status around to avoid header fu, and remove extraneous signalokan2014-01-303-10/+2
| | | | header from xevents.c; noticed by Christian Neukirchen.
* Remove duplicate mouse functions and instead use the kbfunc ones. Nookan2014-01-301-25/+0
| | | | | 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-294-10/+9
|
* keybinding -> key bindingokan2014-01-291-7/+7
|
* Merge keybinding and mousebinding queues into using the same mergedokan2014-01-293-43/+38
| | | | | 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-291-0/+15
| | | | command name - last match.
* Check command name/path for truncation and provide user feedback duringokan2014-01-293-15/+30
| | | | | | 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-283-4/+10
| | | | config parse; based on a discussion with Tiago Cunha.
* The EWMH spec states that if the cardinal returned is 0xFFFFFFFF (-1)okan2014-01-281-2/+11
| | | | | | 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-282-7/+5
|
* move some init up and shed some blank linesokan2014-01-272-6/+3
|
* simplify parse_config using assignment; inspired by a very old diff fromokan2014-01-271-57/+2
| | | | Tiago Cunha.
* more range checkingokan2014-01-241-4/+7
|
* correct arguments and drop the cast.okan2014-01-241-1/+1
| | | | sanity check by oga@nicotinebsd
* no need to quote within warningokan2014-01-231-2/+2
|
* If no title is supplied, term uses only the basename for its title.okan2014-01-231-2/+2
| | | | | | | 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-221-25/+25
|
* cwm_argv doesn't need to be global any longerokan2014-01-221-5/+5
|
* start properly releasing X resources during teardownokan2014-01-221-0/+19
|
* Somewhat streamline event loop/restart/quit handling; most notableokan2014-01-225-28/+31
| | | | | | | | 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-215-17/+18
|
* Save the ptr position before lowering via kbd, so as to be able to cycleokan2014-01-201-0/+1
| | | | | 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-203-74/+58
| | | | bits even closer.
* Use argument to pass down flags for mousefunc cyclegroup; removesokan2014-01-203-12/+5
| | | | rcyclegroup wrapper need - now similar to kbfunc.
* constify and rename some confusing variables around cmdq.okan2014-01-205-20/+21
|
* - remove redundant range check for buttons in conf_bind_mouse.okan2014-01-203-64/+61
| | | | | | | | | - 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-206-49/+34
| | | | path; from Tiago Cunha.
* use consistent typesokan2014-01-039-43/+43
|
* state is longokan2014-01-031-1/+1
|
* calculate proper menu width/height on the first Expose event; 'jump' (while ↵okan2014-01-021-2/+2
| | | | using gap) noticed by Christian Neukirchen
* Accept _NET_CURRENT_DESKTOP ClientMessage; from Thomas Adam, thoughokan2014-01-021-1/+7
| | | | instead of group toggle, group only.
* Accept _NET_WM_DESKTOP clientmessage; from Thomas Adamokan2014-01-021-0/+4
|
* bring mousefunc closer to kbfuncokan2014-01-024-38/+48
|
* gc keycode in keybinding since we only deal with keysym nowokan2014-01-021-1/+0
|
* rename for clarityokan2014-01-021-4/+4
|