From 4be986107b5aa6ba20dee59601e0e582e9e3c375 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 1 Sep 2016 16:35:37 +0000 Subject: [PATCH] generic: various cleanups Signed-off-by: Ivailo Monev --- .../componentchooser/windowmanagers/CMakeLists.txt | 9 +-- kwin/paintredirector.cpp | 67 +++++++++------------- kwin/paintredirector.h | 30 +++------- 3 files changed, 35 insertions(+), 71 deletions(-) diff --git a/kcontrol/componentchooser/windowmanagers/CMakeLists.txt b/kcontrol/componentchooser/windowmanagers/CMakeLists.txt index b05c7e6c..b8b4d021 100644 --- a/kcontrol/componentchooser/windowmanagers/CMakeLists.txt +++ b/kcontrol/componentchooser/windowmanagers/CMakeLists.txt @@ -7,13 +7,6 @@ install( marco.desktop metacity.desktop openbox.desktop + xfwm4.desktop DESTINATION ${DATA_INSTALL_DIR}/ksmserver/windowmanagers ) - -if(OPENGLES_FOUND) - install( - FILES - kwin_gles.desktop - DESTINATION ${DATA_INSTALL_DIR}/ksmserver/windowmanagers - ) -endif() diff --git a/kwin/paintredirector.cpp b/kwin/paintredirector.cpp index 370c4663..7aa8e9ef 100644 --- a/kwin/paintredirector.cpp +++ b/kwin/paintredirector.cpp @@ -258,48 +258,10 @@ void PaintRedirector::paint(DecorationPixmap border, const QRect& r, const QRect - -// ------------------------------------------------------------------ - - - - -ImageBasedPaintRedirector::ImageBasedPaintRedirector(Client *c, QWidget *widget) - : PaintRedirector(c, widget) -{ -} - -ImageBasedPaintRedirector::~ImageBasedPaintRedirector() -{ -} - -QPaintDevice *ImageBasedPaintRedirector::recreateScratch(const QSize &size) -{ - m_scratchImage = QImage(size, QImage::Format_ARGB32_Premultiplied); - return &m_scratchImage; -} - -QPaintDevice *ImageBasedPaintRedirector::scratch() -{ - return &m_scratchImage; -} - -void ImageBasedPaintRedirector::fillScratch(Qt::GlobalColor color) -{ - m_scratchImage.fill(color); -} - -void ImageBasedPaintRedirector::discardScratch() -{ - m_scratchImage = QImage(); -} - - // ------------------------------------------------------------------ - RasterXRenderPaintRedirector::RasterXRenderPaintRedirector(Client *c, QWidget *widget) - : ImageBasedPaintRedirector(c, widget) + : PaintRedirector(c, widget) , m_gc(0) { for (int i=0; i @@ -202,12 +192,6 @@ xcb_render_picture_t PaintRedirector::topDecoPixmap() const return picture(TopPixmap); } -inline -const QImage &ImageBasedPaintRedirector::scratchImage() const -{ - return m_scratchImage; -} - } // namespace #endif -- 2.11.0