From 319800cbacc9b93449328df4b5aa8efb0e71520e Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Sat, 2 Nov 2013 19:13:58 +0000 Subject: 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. --- app/cwm/calmwm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/cwm/calmwm.h') diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h index baefe603b..741bf8ac0 100644 --- a/app/cwm/calmwm.h +++ b/app/cwm/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. * - * $OpenBSD: calmwm.h,v 1.225 2013/11/01 14:07:19 okan Exp $ + * $OpenBSD: calmwm.h,v 1.226 2013/11/02 19:13:56 okan Exp $ */ #ifndef _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 */ -- cgit v1.2.3