summaryrefslogtreecommitdiffstats
path: root/driver/fade.h
blob: 6c62d33e6892f7a959717667f0f66d62c6b4f819 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* xscreensaver, Copyright © 1992-2021 Jamie Zawinski <jwz@jwz.org>
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided that
 * the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation.  No representations are made about the suitability of this
 * software for any purpose.  It is provided "as is" without express or 
 * implied warranty.
 */

#ifndef __FADE_H__
#define __FADE_H__

/* Returns true if canceled by user activity. */
extern Bool fade_screens (XtAppContext app, Display *dpy,
                          Window *black_windows, int nwindows,
			  double seconds, Bool out_p, Bool from_desktop_p,
                          void **closureP);

/* Like XDestroyWindow, but destroys the window later, on a timer.  This is
   necessary to work around a KDE 5 compositor bug.  Without this, destroying
   an old window causes the desktop to briefly become visible, even though a
   new window has already been mapped that is obscuring both of them!
 */
extern void defer_XDestroyWindow (XtAppContext, Display *, Window);

#endif /* __FADE_H__ */