~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to functions.c

  • Committer: Matthew Fuller
  • Date: 2022-10-28 00:46:37 UTC
  • mto: This revision was merged to the branch mainline in revision 693.
  • Revision ID: fullermd@over-yonder.net-20221028004637-64lawcsf94emu7il
ifdef a few remaining bits discovered by the compiler  Builds with
WITH_CAPTIVE=OFF now work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
static bool
367
367
DeferExecution(int context, int func, Cursor cursor)
368
368
{
 
369
        Window confine_to = Scr->Root;
 
370
#ifdef CAPTIVE
 
371
        if(func == F_ADOPTWINDOW) {
 
372
                confine_to = None;
 
373
        }
 
374
#endif
 
375
 
369
376
        if((context == C_ROOT) || (context == C_ALTERNATE)) {
370
377
                LastCursor = cursor;
371
378
                XGrabPointer(dpy,
374
381
                             ButtonPressMask | ButtonReleaseMask,
375
382
                             GrabModeAsync,
376
383
                             GrabModeAsync,
377
 
                             (func == F_ADOPTWINDOW) ? None : Scr->Root,
 
384
                             confine_to,
378
385
                             cursor,
379
386
                             CurrentTime);
380
387
                RootFunction = func;