aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga2009-01-27 00:42:53 +0000
committeroga2009-01-27 00:42:53 +0000
commit50443d57389167efe8f5b552e55a2773c4bc8fb9 (patch)
treecc58b4a0d9df4aa21a6b456becf4f15963959150 /calmwm.h
parentdf17ce729b273d095dc5b33f6723a678c10883c1 (diff)
downloadcwm-50443d57389167efe8f5b552e55a2773c4bc8fb9.tar.gz
One of the most annoying things to do was restart cwm and lose all of
your group state. Fix this up by using an X Atom (_CWM_GRP) to store the name of the group that we're using (the name, not the number is because at one point we may make the group numbers dynamic). I've been talking about this since c2k8. so CM-w means you keep all of your windows grouped properly. ok okan@, todd@
Diffstat (limited to '')
-rw-r--r--calmwm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/calmwm.h b/calmwm.h
index a800ca4..ec93768 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.h,v 1.80 2009/01/23 19:00:59 okan Exp $
+ * $Id: calmwm.h,v 1.81 2009/01/27 00:42:53 oga Exp $
*/
#ifndef _CALMWM_H_
@@ -140,6 +140,7 @@ extern const char *shortcut_to_name[];
struct group_ctx {
TAILQ_ENTRY(group_ctx) entry;
struct client_ctx_q clients;
+ const char *name;
int shortcut;
int hidden;
int nhidden;
@@ -523,7 +524,8 @@ extern struct conf Conf;
#define WM_TAKE_FOCUS cwm_atoms[2]
#define WM_PROTOCOLS cwm_atoms[3]
#define _MOTIF_WM_HINTS cwm_atoms[4]
-#define CWM_NO_ATOMS 5
+#define _CWM_GRP cwm_atoms[5]
+#define CWM_NO_ATOMS 6
extern Atom cwm_atoms[CWM_NO_ATOMS];