~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to ctwm.c

  • Committer: Matthew Fuller
  • Date: 2016-07-11 20:04:19 UTC
  • mto: This revision was merged to the branch mainline in revision 503.
  • Revision ID: fullermd@over-yonder.net-20160711200419-g1nmfcnll76o2ol4
Add comments about the usage of Junk vars, and collapse their
definitions a little.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
 
162
162
bool HandlingEvents = false;    /* are we handling events yet? */
163
163
 
164
 
Window JunkRoot;                /* junk window */
165
 
Window JunkChild;               /* junk window */
166
 
int JunkX;                      /* junk variable */
167
 
int JunkY;                      /* junk variable */
 
164
/*
 
165
 * Various junk vars for xlib calls.  Many calls have to get passed these
 
166
 * pointers to return values into, but in a lot of cases we don't care
 
167
 * about some/all of them, and since xlib blindly derefs and stores into
 
168
 * them, we can't just pass NULL for the ones we don't care about.  So we
 
169
 * make this set of globals to use as standin.  These should never be
 
170
 * used or read in our own code; use real vars for the values we DO use
 
171
 * from the calls.
 
172
 */
 
173
Window JunkRoot, JunkChild;
 
174
int JunkX, JunkY;
168
175
unsigned int JunkWidth, JunkHeight, JunkBW, JunkDepth, JunkMask;
169
176
 
170
177
char *ProgramName;