Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | these have nothing to do with 'sticky', but rather group membership; rename. | okan | 2014-09-27 | -17/+14 |
| | ||||
* | Pass just the group to group_setactive instead of the screen and an | okan | 2014-09-27 | -13/+9 |
| | | | | index which then needed to be found in a queue. | |||
* | Update _NET_CURRENT_DESKTOP with the screen's group_active->num. | okan | 2014-09-23 | -9/+11 |
| | ||||
* | Move stuff that doesn't belong in group_init; while here, explicitly | okan | 2014-09-23 | -18/+18 |
| | | | | initialize hideall and cycling. | |||
* | Move motion time check to the top of each MotionNotify block (and | okan | 2014-09-18 | -17/+16 |
| | | | | | | eliminate from ButtonRelease); further limits the amount of work done outside the threshold, notably mousefunc_sweep_calc, screen_find_xinerama and client_snapcalc. | |||
* | these client actions are just toggles; less confusing with better names | okan | 2014-09-17 | -56/+58 |
| | ||||
* | ewmh states _NET_WM_STATE_STICKY should not alter position | okan | 2014-09-17 | -9/+9 |
| | ||||
* | Use a similarly named check as sticky for hidden check in a group. | okan | 2014-09-17 | -15/+11 |
| | ||||
* | don't toggle _WM_STATE_HIDDEN here yet | okan | 2014-09-17 | -3/+3 |
| | ||||
* | Implement EWMH _NET_WM_STATE_HIDDEN. | okan | 2014-09-17 | -9/+31 |
| | ||||
* | Introduce a check to see if a group holds only 'sticky' clients and use | okan | 2014-09-17 | -6/+19 |
| | | | | | | | | this check to decide if a group is virtually empty. Rationale: if a group contains *only* 'sticky' clients, it should be skipped while cycling through groups. Apply similar logic to the group menu. Based on an idea from phessler@, who also tested another version. | |||
* | use similiar style for client flags | okan | 2014-09-15 | -11/+11 |
| | ||||
* | Remove incorrect cast in kbfunc_exec. In kbfunc_ssh, reverse logic on | okan | 2014-09-11 | -5/+5 |
| | | | | truncation check so it's obvious. | |||
* | fold in 'active' into 'flags' | okan | 2014-09-10 | -8/+8 |
| | ||||
* | move the check for an empty queue up during cycle | okan | 2014-09-08 | -4/+2 |
| | ||||
* | name the group client queue appropriately, like other queues | okan | 2014-09-08 | -21/+21 |
| | ||||
* | more style nits and wrapping | okan | 2014-09-08 | -5/+7 |
| | ||||
* | since mruq has been folded in, rename mru-named functions | okan | 2014-09-08 | -7/+7 |
| | ||||
* | Remove duplicate client queue (mruq); instead, remove and take the | okan | 2014-09-08 | -35/+32 |
| | | | | | | global Clientq and place it inside screen_ctx since every client belongs to a screen, then use the same per screen clientq to track stacking order (the sole reason for mruq). | |||
* | Now that a group knows its screen, only pass down the group_ctx. | okan | 2014-09-08 | -22/+22 |
| | ||||
* | Add screen_ctx to group_ctx, and populate on init. | okan | 2014-09-07 | -2/+4 |
| | ||||
* | more style nits | okan | 2014-09-07 | -75/+75 |
| | ||||
* | screen_fromroot -> screen_find | okan | 2014-09-07 | -12/+12 |
| | ||||
* | Get rid of a redundant array of groups per screen; we already have a | okan | 2014-09-07 | -11/+24 |
| | | | | link to the group queue for each screen. | |||
* | Few style nits; extend 'path' to MAXPATHLEN. | okan | 2014-09-06 | -11/+14 |
| | ||||
* | generic sighandler | okan | 2014-09-06 | -11/+14 |
| | ||||
* | style nit | okan | 2014-09-06 | -3/+3 |
| | ||||
* | Move termpath and lockpath into cmdq; side effect is that 'lock' and | okan | 2014-09-06 | -27/+30 |
| | | | | 'term' now show up in the application menu. | |||
* | Rework group names: stash the group name inside the group_ctx as opposed | okan | 2014-09-06 | -69/+46 |
| | | | | | | to having to manage an array outside in screen_ctx for group names and shortcuts. Simplifies (and moves bits for) reading, and constructing data for, EWMH's _NET_DESKTOP_NAMES. | |||
* | bring menu bits closer together | okan | 2014-09-02 | -4/+3 |
| | ||||
* | add explicit paran and drop some empty lines bringing like functions closer | okan | 2014-09-01 | -8/+4 |
| | ||||
* | Merge group_menu into mousefunc_menu_group. | okan | 2014-09-01 | -41/+34 |
| | ||||
* | Since the flatting out of sc->group_names is only for setting | okan | 2014-08-25 | -31/+24 |
| | | | | | NET_DESKTOP_NAMES, merge the helper into xu_ewmh_net_desktop_names, where we actually set the property. | |||
* | Implement _NET_WM_STATE_STICKY, bound to CM-s by default; allows any | okan | 2014-08-25 | -11/+55 |
| | | | | | | | client to 'stick' to all desktops (ewmh speak) or groups - this currently has the same affect as setting a client's group to 'nogroup', with the exception that the client can also be in a group, so when un-sticking, the client will go back to its original group/desktop. | |||
* | Continue effort to bring keyboard and mouse functions together; merge | okan | 2014-08-24 | -31/+21 |
| | | | | name_to_kbfunc and name_to_mousefunc. | |||
* | gc->hidden has never consistently kept track of a group's state; | okan | 2014-08-24 | -35/+21 |
| | | | | | | | | | | group_show() and group_hide() are not the only ways a group can change state - if all clients in a group are either hidden or unhidden, then that group's state should change, as well as the various EWMH ways. Instead of trying to keep track in a wide variety of places, simply query the clients in a group before needing to take action based on the group's state. Solves long standing confusion of when a group is hidden or not. | |||
* | Fix nogroup regression, where nogroup became an actual group - the | okan | 2014-08-22 | -19/+22 |
| | | | | | | | | | | symantics between cwm groups and ewmh got in the way. Ensure a client that wants to be in nogroup stays in nogroup (thus stays in view), even when (re)reading NET_WM_DESKTOP. Paritially reverts patchset 644 (2014-02-07 13:09 PST) which deals with a NULL cc->group. All to be revisited when NET_WM_STATE_STICKY hits cwm. Reported by many; testing and ok phessler. | |||
* | Purely mechanical; unify 'num', 'no' and 'shortcut'. | okan | 2014-08-20 | -39/+38 |
| | ||||
* | Split off group window restacking. | okan | 2014-08-20 | -5/+16 |
| | ||||
* | whitespace | okan | 2014-08-20 | -2/+2 |
| | ||||
* | fix a misleading comment and function name | okan | 2014-08-20 | -6/+6 |
| | ||||
* | Remove unnecessary memset since reload was replaced with restart; | okan | 2014-08-19 | -3/+1 |
| | | | | from Kent Spillner. | |||
* | Pull highstack from group_ctx (and useless calculations of); in the one | okan | 2014-08-19 | -19/+11 |
| | | | | | place that we use highstack, replace that usage with a local variable (for now until stacking is done properly). | |||
* | Get rid of nhidden in group_ctx; it actually never reported correctly | okan | 2014-08-18 | -10/+7 |
| | | | | | | | since nhidden wasn't incremented nor decremeted in all the right places, thus confusing matters. We don't need to carry a count around, so just use a local variable in the one place we need one to supply XRestackWindows(). | |||
* | plug memleak (currently unused func); from Tiago Cunha | okan | 2014-04-21 | -1/+2 |
| | ||||
* | 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). |