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.
This commit is contained in:
okan
2013-11-02 19:13:56 +00:00
parent b8f53666bd
commit b5915eb989
2 changed files with 38 additions and 31 deletions

View File

@@ -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 */