Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/xrender/scene_xrender.cpp
Show All 30 Lines | |||||
31 | #include "composite.h" | 31 | #include "composite.h" | ||
32 | #include "deleted.h" | 32 | #include "deleted.h" | ||
33 | #include "effects.h" | 33 | #include "effects.h" | ||
34 | #include "main.h" | 34 | #include "main.h" | ||
35 | #include "overlaywindow.h" | 35 | #include "overlaywindow.h" | ||
36 | #include "platform.h" | 36 | #include "platform.h" | ||
37 | #include "screens.h" | 37 | #include "screens.h" | ||
38 | #include "xcbutils.h" | 38 | #include "xcbutils.h" | ||
39 | #include "kwinxrenderutils.h" | | |||
40 | #include "decorations/decoratedclient.h" | 39 | #include "decorations/decoratedclient.h" | ||
41 | 40 | | |||
41 | #include <kwineffectquickview.h> | ||||
42 | #include <kwinxrenderutils.h> | ||||
43 | | ||||
42 | #include <xcb/xfixes.h> | 44 | #include <xcb/xfixes.h> | ||
43 | 45 | | |||
44 | #include <QDebug> | 46 | #include <QDebug> | ||
45 | #include <QPainter> | 47 | #include <QPainter> | ||
46 | #include <QtMath> | 48 | #include <QtMath> | ||
47 | 49 | | |||
48 | namespace KWin | 50 | namespace KWin | ||
49 | { | 51 | { | ||
▲ Show 20 Lines • Show All 1274 Lines • ▼ Show 20 Line(s) | |||||
1324 | } // namespace | 1326 | } // namespace | ||
1325 | #endif | 1327 | #endif | ||
1326 | 1328 | | |||
1327 | 1329 | | |||
1328 | void KWin::SceneXrender::paintCursor() | 1330 | void KWin::SceneXrender::paintCursor() | ||
1329 | { | 1331 | { | ||
1330 | 1332 | | |||
1331 | } | 1333 | } | ||
1334 | | ||||
1335 | void KWin::SceneXrender::paintEffectQuickView(KWin::EffectQuickView *w) | ||||
1336 | { | ||||
1337 | const QImage buffer = w->bufferAsImage(); | ||||
1338 | if (buffer.isNull()) { | ||||
1339 | return; | ||||
1340 | } | ||||
1341 | XRenderPicture picture(buffer); | ||||
1342 | xcb_render_composite(connection(), XCB_RENDER_PICT_OP_OVER, picture, XCB_RENDER_PICTURE_NONE, | ||||
1343 | effects->xrenderBufferPicture(), | ||||
1344 | 0, 0, 0, 0, w->geometry().x(), w->geometry().y(), | ||||
1345 | w->geometry().width(), w->geometry().height()); | ||||
1346 | } |