1
/********************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 2007 Lubos Lunak <l.lunak@kde.org>
6
Copyright (C) 2009 Martin Gräßlin <kde@martin-graesslin.com>
7
Copyright (C) 2009, 2010 Lucas Murray <lmurray@undefinedfire.com>
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with this program. If not, see <http://www.gnu.org/licenses/>.
21
*********************************************************************/
26
#include <kwineffects.h>
42
virtual void reconfigure(ReconfigureFlags);
43
virtual void prePaintScreen(ScreenPrePaintData& data, int time);
44
virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
45
virtual void postPaintScreen();
46
virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
48
void slotWindowAdded(EffectWindow* w);
49
void slotWindowClosed(EffectWindow *w);
50
void slotWindowDeleted(EffectWindow *w);
51
void slotPropertyNotify(EffectWindow *w, long a);
53
bool isLogoutDialog(EffectWindow* w);
54
double progress; // 0-1
56
EffectWindow* logoutWindow;
57
bool logoutWindowClosed;
58
bool logoutWindowPassed;
63
EffectWindowList ignoredWindows;
65
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
66
void renderVignetting();
68
bool blurSupported, useBlur;
69
GLTexture* blurTexture;
70
GLRenderTarget* blurTarget;
72
EffectWindowList windows;
73
QHash< EffectWindow*, double > windowsOpacities;