~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to ctwm_main.c

  • Committer: Matthew Fuller
  • Date: 2018-11-14 04:37:34 UTC
  • mto: This revision was merged to the branch mainline in revision 652.
  • Revision ID: fullermd@over-yonder.net-20181114043734-722r0c5pjtwwei20
Once upon a time, this single-use util func did a bunch of individiual
Intern calls, so it made sense to have it as a separate function.  Now
that it just wraps a single call, not so much.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
Display *dpy;                   /* which display are we talking to */
79
79
Window ResizeWindow;            /* the window we are resizing */
80
80
 
 
81
Atom XCTWMAtom[NUM_CTWM_XATOMS]; ///< Our various common atoms
 
82
 
81
83
int NumScreens;                 /* number of screens in ScreenList */
82
84
bool HasShape;                  /* server supports shape extension? */
83
85
int ShapeEventBase, ShapeErrorBase;
88
90
 
89
91
static Window CreateCaptiveRootWindow(int x, int y,
90
92
                                      unsigned int width, unsigned int height);
91
 
static void InternUsefulAtoms(void);
92
93
ScreenInfo *InitScreenInfo(int scrnum, Window croot, int crootx, int crooty,
93
94
                           unsigned int crootw, unsigned int crooth);
94
95
static bool MappedNotOverride(Window w);
258
259
                ColormapContext = XUniqueContext();
259
260
                InitWorkSpaceManagerContext();
260
261
 
261
 
                InternUsefulAtoms();
 
262
                // Load up our standard set of atoms
 
263
                XInternAtoms(dpy, XCTWMAtomNames, NUM_CTWM_XATOMS, False, XCTWMAtom);
262
264
 
263
265
                NumScreens = ScreenCount(dpy);
264
266
                PreviousScreen = DefaultScreen(dpy);
1290
1292
 
1291
1293
 
1292
1294
 
1293
 
Atom XCTWMAtom[NUM_CTWM_XATOMS];
1294
 
void
1295
 
InternUsefulAtoms(void)
1296
 
{
1297
 
        XInternAtoms(dpy, XCTWMAtomNames, NUM_CTWM_XATOMS, False, XCTWMAtom);
1298
 
}
1299
 
 
1300
1295
 
1301
1296
/**
1302
1297
 * Create a new window to use for a captive ctwm.