summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2009-01-15 00:32:35 +0000
committerokan <okan>2009-01-15 00:32:35 +0000
commit49e218cf53abe04f6ab07ef29687c9e0ece46a89 (patch)
treeaab8f23d9d3b44f03719f26a501e4606c9f3aa71 /group.c
parent7e110f379be217bbf6a5476acb8043c1ff73a8e6 (diff)
downloadcwm-49e218cf53abe04f6ab07ef29687c9e0ece46a89.tar.gz
cwm-49e218cf53abe04f6ab07ef29687c9e0ece46a89.tar.xz
cwm-49e218cf53abe04f6ab07ef29687c9e0ece46a89.zip
- 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 'group.c')
-rw-r--r--group.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/group.c b/group.c
index c9300e4..0a0c2bc 100644
--- a/group.c
+++ b/group.c
@@ -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;