Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Alignment fix; found the hard way on sparc64 by landry@ (and thanks too | okan | 2014-02-27 | -2/+2 |
| | | | | | | for fast access to a box!) ok deraadt@, matthieu@ | |||
* | Make sure we cycle through existing client's group membership and set | okan | 2014-02-08 | -3/+14 |
| | | | | | the hidden state on the group; important to know group hidden state after a re-exec or restart of cwm (as easily seen in group menu). | |||
* | Replace a few hand rolled loops with like tailq loops. | okan | 2014-02-08 | -17/+13 |
| | ||||
* | all mapped clients now should have a group, so simplify some cases | okan | 2014-02-07 | -10/+6 |
| | ||||
* | If _NET_WM_DESKTOP is set to -1 during client creation, place the client into | okan | 2014-02-07 | -29/+13 |
| | | | | | | | | | | | | 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; | okan | 2014-02-06 | -2/+3 |
| | | | | | 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; we | okan | 2014-02-03 | -26/+36 |
| | | | | | still use Xinerama to populate the regions per screen, but will switch at a more appropriate time. | |||
* | make this XQueryTree like the other | okan | 2014-02-03 | -13/+11 |
| | ||||
* | Move redundant bits from screen_init (while dealing with existing | okan | 2014-02-03 | -19/+21 |
| | | | | | | 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 into | okan | 2014-02-02 | -9/+9 |
| | | | | client_init and perform that X roundtrip only once. | |||
* | No need to store screen colormap and visual; rather just use the X | okan | 2014-02-02 | -15/+13 |
| | | | | macros in the one place they are needed. | |||
* | Unlike free(3), XFree(3) can't be passed a NULL pointer. | okan | 2014-02-02 | -3/+3 |
| | ||||
* | The menu already limits entries with MENU_MAXENTRY, so don't bother | okan | 2014-02-02 | -11/+10 |
| | | | | holding a command name limit as well. | |||
* | Take menu's bwidth into account for position/size; reported by Thomas Adam. | okan | 2014-02-01 | -3/+3 |
| | ||||
* | Let the config parser continue parsing even after encountering an error; | okan | 2014-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 previous | okan | 2014-01-30 | -1/+2 |
| | ||||
* | Switch ignoreq to winname struct since it's basically the same thing; | okan | 2014-01-30 | -36/+20 |
| | | | | removes limit on name matching. | |||
* | use the same autogroupwin variable as everywhere else | okan | 2014-01-30 | -7/+7 |
| | ||||
* | Move cwm_status around to avoid header fu, and remove extraneous signal | okan | 2014-01-30 | -5/+5 |
| | | | | header from xevents.c; noticed by Christian Neukirchen. | |||
* | Remove duplicate mouse functions and instead use the kbfunc ones. No | okan | 2014-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. | okan | 2014-01-29 | -14/+13 |
| | ||||
* | keybinding -> key binding | okan | 2014-01-29 | -8/+8 |
| | ||||
* | Merge keybinding and mousebinding queues into using the same merged | okan | 2014-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 for | okan | 2014-01-29 | -1/+16 |
| | | | | command name - last match. | |||
* | Check command name/path for truncation and provide user feedback during | okan | 2014-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 during | okan | 2014-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) | okan | 2014-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. | okan | 2014-01-28 | -9/+7 |
| | ||||
* | move some init up and shed some blank lines | okan | 2014-01-27 | -8/+5 |
| | ||||
* | simplify parse_config using assignment; inspired by a very old diff from | okan | 2014-01-27 | -58/+3 |
| | | | | Tiago Cunha. | |||
* | more range checking | okan | 2014-01-24 | -5/+8 |
| | ||||
* | correct arguments and drop the cast. | okan | 2014-01-24 | -2/+2 |
| | | | | sanity check by oga@nicotinebsd | |||
* | no need to quote within warning | okan | 2014-01-23 | -3/+3 |
| | ||||
* | If no title is supplied, term uses only the basename for its title. | okan | 2014-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 whitespace | okan | 2014-01-22 | -26/+26 |
| | ||||
* | cwm_argv doesn't need to be global any longer | okan | 2014-01-22 | -6/+6 |
| | ||||
* | start properly releasing X resources during teardown | okan | 2014-01-22 | -1/+20 |
| | ||||
* | Somewhat streamline event loop/restart/quit handling; most notable | okan | 2014-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. | okan | 2014-01-21 | -22/+23 |
| | ||||
* | Save the ptr position before lowering via kbd, so as to be able to cycle | okan | 2014-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 mousefunc | okan | 2014-01-20 | -77/+61 |
| | | | | bits even closer. | |||
* | Use argument to pass down flags for mousefunc cyclegroup; removes | okan | 2014-01-20 | -15/+8 |
| | | | | rcyclegroup wrapper need - now similar to kbfunc. | |||
* | constify and rename some confusing variables around cmdq. | okan | 2014-01-20 | -25/+26 |
| | ||||
* | - remove redundant range check for buttons in conf_bind_mouse. | okan | 2014-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 code | okan | 2014-01-20 | -55/+40 |
| | | | | path; from Tiago Cunha. | |||
* | use consistent types | okan | 2014-01-03 | -52/+52 |
| | ||||
* | state is long | okan | 2014-01-03 | -2/+2 |
| | ||||
* | calculate proper menu width/height on the first Expose event; 'jump' (while ↵ | okan | 2014-01-02 | -3/+3 |
| | | | | using gap) noticed by Christian Neukirchen | |||
* | Accept _NET_CURRENT_DESKTOP ClientMessage; from Thomas Adam, though | okan | 2014-01-02 | -2/+8 |
| | | | | instead of group toggle, group only. | |||
* | Accept _NET_WM_DESKTOP clientmessage; from Thomas Adam | okan | 2014-01-02 | -1/+5 |
| |