From 1d5b0171d649080eac96400491500b845ac5826c Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 2 Nov 2013 19:13:56 +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. --- calmwm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index baefe60..741bf8a 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. * - * $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-2-gb3c3