From 40588e05ea93b092a6caa932bb89a365c99c7c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 6 Sep 2013 09:42:56 +0200 Subject: [PATCH] Clean up the includes in kwin/options.(h/cpp) Used to include quite a bit no longer needed. In order to get rid of the utils.h inclusion one enum is moved to options (where it actually belongs to). --- options.cpp | 7 ------- options.h | 19 ++++++++++++++----- utils.h | 14 -------------- 3 files changed, 14 insertions(+), 26 deletions(-) diff --git a/options.cpp b/options.cpp index e6d016bea3..5e9e60251c 100644 --- a/options.cpp +++ b/options.cpp @@ -25,15 +25,8 @@ along with this program. If not, see . #ifndef KCMRULES -#include -#include #include -#include -#include -#include -#include -#include "client.h" #include "compositingprefs.h" #include "settings.h" #include "xcbutils.h" diff --git a/options.h b/options.h index 3ac9947b75..040eb614ef 100644 --- a/options.h +++ b/options.h @@ -24,18 +24,27 @@ along with this program. If not, see . #define KWIN_OPTIONS_H #include -#include -#include #include #include "placement.h" -#include "utils.h" namespace KWin { -class Client; -class CompositingPrefs; +// Whether to keep all windows mapped when compositing (i.e. whether to have +// actively updated window pixmaps). +enum HiddenPreviews { + // The normal mode with regard to mapped windows. Hidden (minimized, etc.) + // and windows on inactive virtual desktops are not mapped, their pixmaps + // are only their icons. + HiddenPreviewsNever, + // Like normal mode, but shown windows (i.e. on inactive virtual desktops) + // are kept mapped, only hidden windows are unmapped. + HiddenPreviewsShown, + // All windows are kept mapped regardless of their state. + HiddenPreviewsAlways +}; + class Settings; class Options : public QObject, public KDecorationOptions diff --git a/utils.h b/utils.h index 750d2256d3..4348b98bd4 100644 --- a/utils.h +++ b/utils.h @@ -142,20 +142,6 @@ enum ShadeMode { ShadeActivated // "shaded", but visible due to alt+tab to the window }; -// Whether to keep all windows mapped when compositing (i.e. whether to have -// actively updated window pixmaps). -enum HiddenPreviews { - // The normal mode with regard to mapped windows. Hidden (minimized, etc.) - // and windows on inactive virtual desktops are not mapped, their pixmaps - // are only their icons. - HiddenPreviewsNever, - // Like normal mode, but shown windows (i.e. on inactive virtual desktops) - // are kept mapped, only hidden windows are unmapped. - HiddenPreviewsShown, - // All windows are kept mapped regardless of their state. - HiddenPreviewsAlways -}; - class Motif { public: