X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fwindows.c;h=45e4dbcef6426179aeb82e15219ba0dc2ad1609a;hb=d1ae2829ff0fd2a96c16a0c8c5420efaa47d7b30;hp=2bdc146c187f012dfedf6e1fed8df10d789ba82b;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/driver/windows.c b/driver/windows.c index 2bdc146c..45e4dbce 100644 --- a/driver/windows.c +++ b/driver/windows.c @@ -1,5 +1,5 @@ /* windows.c --- turning the screen black; dealing with visuals, virtual roots. - * xscreensaver, Copyright (c) 1991-2011 Jamie Zawinski + * xscreensaver, Copyright (c) 1991-2014 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -74,10 +74,10 @@ typedef long PROP32; extern int kill (pid_t, int); /* signal() is in sys/signal.h... */ Atom XA_VROOT, XA_XSETROOT_ID, XA_ESETROOT_PMAP_ID, XA_XROOTPMAP_ID; +Atom XA_NET_WM_USER_TIME; Atom XA_SCREENSAVER, XA_SCREENSAVER_VERSION, XA_SCREENSAVER_ID; Atom XA_SCREENSAVER_STATUS; - extern saver_info *global_si_kludge; /* I hate C so much... */ static void maybe_transfer_grabs (saver_screen_info *ssi, @@ -396,10 +396,10 @@ ensure_no_screensaver_running (Display *dpy, Screen *screen) && type != None) { unsigned char *id; - if (!XGetWindowProperty (dpy, kids[i], XA_SCREENSAVER_ID, 0, 512, + if (XGetWindowProperty (dpy, kids[i], XA_SCREENSAVER_ID, 0, 512, False, XA_STRING, &type, &format, &nitems, &bytesafter, &id) - == Success + != Success || type == None) id = (unsigned char *) "???"; @@ -1681,7 +1681,7 @@ blank_screen (saver_info *si) raise_window (si, False, False, False); si->screen_blanked_p = True; - si->blank_time = time ((time_t) 0); + si->blank_time = time ((time_t *) 0); si->last_wall_clock_time = 0; store_saver_status (si); /* store blank time */ @@ -1803,7 +1803,7 @@ unblank_screen (saver_info *si) XUnmapWindow (si->dpy, si->screens[i].screensaver_window); si->screen_blanked_p = False; - si->blank_time = time ((time_t) 0); + si->blank_time = time ((time_t *) 0); si->last_wall_clock_time = 0; store_saver_status (si); /* store unblank time */