~ubuntu-branches/ubuntu/lucid/gnustep-back/lucid

« back to all changes in this revision

Viewing changes to Tools/xpbs.m

  • Committer: Bazaar Package Importer
  • Author(s): Hubert Chathi
  • Date: 2009-04-12 15:54:30 UTC
  • mfrom: (1.2.6 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412155430-plxucqyjjpl6aj3s
Tags: 0.16.0-3
Really upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
  /*
217
217
   * Set up atoms for use in X selection mechanism.
218
218
   */
219
 
  XInternAtoms(xDisplay, atom_names, sizeof(atom_names)/sizeof(char*),
220
 
    False, atoms);
 
219
#ifdef HAVE_XINTERNATOMS
 
220
   XInternAtoms(xDisplay, atom_names, sizeof(atom_names)/sizeof(char*),
 
221
                False, atoms);
 
222
#else
 
223
   {
 
224
     int atomCount;
 
225
 
 
226
     for (atomCount = 0; atomCount < sizeof(atom_names)/sizeof(char*); atomCount++)
 
227
       atoms[atomCount] = XInternAtom(xDisplay, atom_names[atomCount], False);
 
228
   }
 
229
#endif
221
230
 
222
231
  xRootWin = RootWindow(xDisplay, DefaultScreen(xDisplay));
223
232
  xAppWin = XCreateSimpleWindow(xDisplay, xRootWin,
314
323
 
315
324
  while ((count = XPending(xDisplay)) > 0)
316
325
    {
 
326
#if 0
 
327
      /* Don't attempt to be smart here. We may enter this method recursively
 
328
       * when further data is requested while processing this event, which
 
329
       * means that the count will not longer be correct when returning to
 
330
       * the outer invocation.
 
331
       */
317
332
      while (count-- > 0)
 
333
#endif
318
334
        {
319
335
          XEvent        xEvent;
320
336