diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2009-01-15 00:32:36 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2009-01-15 00:32:36 +0000 |
commit | 5967ee7fcf807d88d60a058f0321fa1f339aa5f1 (patch) | |
tree | 991d75effe8ce9705c80c39e756111245d6a02ab /app/cwm/group.c | |
parent | b68309d19d4ffbc7a0fd44aa27c2aa2acc61e432 (diff) |
- add missing prototypes.
- properly name, place and static private functions.
- move function which finds the xinerama screen for a coordinate to
a more appropriate place while altering its semantics to match others.
- tiny bit of style.
ok oga@
Diffstat (limited to 'app/cwm/group.c')
-rw-r--r-- | app/cwm/group.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c index 5965c9786..0c3793986 100644 --- a/app/cwm/group.c +++ b/app/cwm/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: group.c,v 1.20 2009/01/11 21:46:48 oga Exp $ + * $Id: group.c,v 1.21 2009/01/15 00:32:35 okan Exp $ */ #include "headers.h" @@ -24,14 +24,20 @@ #define CALMWM_NGROUPS 9 +static void _group_add(struct group_ctx *, struct client_ctx *); +static void _group_remove(struct client_ctx *); +static void _group_hide(struct group_ctx *); +static void _group_show(struct group_ctx *); +static void _group_fix_hidden_state(struct group_ctx *); + struct group_ctx *Group_active = NULL; struct group_ctx Groups[CALMWM_NGROUPS]; int Grouphideall = 0; struct group_ctx_q Groupq; const char *shortcut_to_name[] = { - "nogroup", "one", "two", "three", "four", "five", "six", - "seven", "eight", "nine" + "nogroup", "one", "two", "three", "four", "five", "six", + "seven", "eight", "nine" }; static void @@ -161,12 +167,9 @@ group_sticky_toggle_exit(struct client_ctx *cc) } /* - * selection list display - */ - -/* if group_hidetoggle would produce no effect, toggle the group's hidden state + * if group_hidetoggle would produce no effect, toggle the group's hidden state */ -void +static void _group_fix_hidden_state(struct group_ctx *gc) { struct client_ctx *cc; |