aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2013-11-02 19:13:56 +0000
committerokan2013-11-02 19:13:56 +0000
commit1d5b0171d649080eac96400491500b845ac5826c (patch)
treea5f94edcbc14621033815d4eb0c700c4e6ba3323 /calmwm.h
parent46f25795302be3b728662e487687c50309c1bfe0 (diff)
downloadcwm-1d5b0171d649080eac96400491500b845ac5826c.tar.gz
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.h4
1 files changed, 2 insertions, 2 deletions
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 */