X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxlockmore.c;fp=hacks%2Fxlockmore.c;h=2716f30184d9934161e0c5105a852d3af8958ae9;hp=d5b71f9bb4f956b595cd1daf50b3a6d324117bd4;hb=d5186197bc394e10a4402f7f6d23fbb14103bc50;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e diff --git a/hacks/xlockmore.c b/hacks/xlockmore.c index d5b71f9b..2716f301 100644 --- a/hacks/xlockmore.c +++ b/hacks/xlockmore.c @@ -19,7 +19,7 @@ #include "xlockmoreI.h" #include "screenhack.h" -#ifndef HAVE_COCOA +#if !defined(HAVE_COCOA) && !defined(HAVE_ANDROID) # include #endif /* !HAVE_COCOA */ @@ -292,12 +292,12 @@ xlockmore_init (Display *dpy, Window window, mi->window = window; XGetWindowAttributes (dpy, window, &mi->xgwa); -#ifdef HAVE_COCOA +#if defined(HAVE_COCOA) || defined(HAVE_ANDROID) # if 0 - /* In Cocoa-based xscreensaver, all hacks run in the same address space, - so each one needs to get its own screen number. Believe what jwxyz - says about screen counts and numbers. + /* In Cocoa and Android-based xscreensaver, all hacks run in the + same address space, so each one needs to get its own screen + number. Believe what jwxyz says about screen counts and numbers. */ mi->num_screens = ScreenCount (dpy); mi->screen_number = XScreenNumberOfScreen (mi->xgwa.screen); @@ -316,7 +316,7 @@ xlockmore_init (Display *dpy, Window window, # endif root_p = True; -#else /* !HAVE_COCOA -- real Xlib */ +#else /* real Xlib */ /* In Xlib-based xscreensaver, each hack runs in its own address space, so each one only needs to be aware of one screen.