about summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2013-11-02 19:13:56 +0000
committerokan <okan>2013-11-02 19:13:56 +0000
commitb5915eb9898b93d0f9eeb42df3f7a8a2bd839e49 (patch)
tree35c1fbb6d4d422e6d4469cf8e5fdda89692c174c /calmwm.h
parentb8f53666bd3d84114c6beab636ad410c51e86c67 (diff)
downloadcwm-b5915eb9898b93d0f9eeb42df3f7a8a2bd839e49.tar.gz
cwm-b5915eb9898b93d0f9eeb42df3f7a8a2bd839e49.tar.xz
cwm-b5915eb9898b93d0f9eeb42df3f7a8a2bd839e49.zip
The only reason we need to keep XSizeHints in our client_ctx is for
flags, so just add one to hints; consolidates sizehints and shrinks.
Additionally don't abuse PSize for XGetWMNormalHints() failures.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 439c16f..f0361ba 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -137,11 +137,11 @@ struct client_ctx {
 	TAILQ_ENTRY(client_ctx) mru_entry;
 	struct screen_ctx	*sc;
 	Window			 win;
-	XSizeHints		*size;
 	Colormap		 colormap;
 	u_int			 bwidth; /* border width */
 	struct geom		 geom, savegeom;
 	struct {
+		long		 flags;	/* defined hints */
 		int		 basew;	/* desired width */
 		int		 baseh;	/* desired height */
 		int		 minw;	/* minimum width */