Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show All 26 Lines | |||||
27 | #include "activities.h" | 27 | #include "activities.h" | ||
28 | #endif | 28 | #endif | ||
29 | #include "deleted.h" | 29 | #include "deleted.h" | ||
30 | #include "client.h" | 30 | #include "client.h" | ||
31 | #include "cursor.h" | 31 | #include "cursor.h" | ||
32 | #include "group.h" | 32 | #include "group.h" | ||
33 | #include "osd.h" | 33 | #include "osd.h" | ||
34 | #include "pointer_input.h" | 34 | #include "pointer_input.h" | ||
35 | #include "scene_xrender.h" | | |||
36 | #include "scene_qpainter.h" | 35 | #include "scene_qpainter.h" | ||
37 | #include "unmanaged.h" | 36 | #include "unmanaged.h" | ||
38 | #ifdef KWIN_BUILD_TABBOX | 37 | #ifdef KWIN_BUILD_TABBOX | ||
39 | #include "tabbox.h" | 38 | #include "tabbox.h" | ||
40 | #endif | 39 | #endif | ||
41 | #include "screenedge.h" | 40 | #include "screenedge.h" | ||
42 | #include "scripting/scriptedeffect.h" | 41 | #include "scripting/scriptedeffect.h" | ||
43 | #include "screens.h" | 42 | #include "screens.h" | ||
▲ Show 20 Lines • Show All 1275 Lines • ▼ Show 20 Line(s) | |||||
1319 | 1318 | | |||
1320 | void EffectsHandlerImpl::unregisterTouchBorder(ElectricBorder border, QAction *action) | 1319 | void EffectsHandlerImpl::unregisterTouchBorder(ElectricBorder border, QAction *action) | ||
1321 | { | 1320 | { | ||
1322 | ScreenEdges::self()->unreserveTouch(border, action); | 1321 | ScreenEdges::self()->unreserveTouch(border, action); | ||
1323 | } | 1322 | } | ||
1324 | 1323 | | |||
1325 | unsigned long EffectsHandlerImpl::xrenderBufferPicture() | 1324 | unsigned long EffectsHandlerImpl::xrenderBufferPicture() | ||
1326 | { | 1325 | { | ||
1327 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | 1326 | return m_scene->xrenderBufferPicture(); | ||
1328 | if (SceneXrender* s = dynamic_cast< SceneXrender* >(m_scene)) | | |||
1329 | return s->bufferPicture(); | | |||
1330 | #endif | | |||
1331 | return None; | | |||
1332 | } | 1327 | } | ||
1333 | 1328 | | |||
1334 | QPainter *EffectsHandlerImpl::scenePainter() | 1329 | QPainter *EffectsHandlerImpl::scenePainter() | ||
1335 | { | 1330 | { | ||
1336 | if (SceneQPainter *s = dynamic_cast<SceneQPainter*>(m_scene)) { | 1331 | if (SceneQPainter *s = dynamic_cast<SceneQPainter*>(m_scene)) { | ||
1337 | return s->painter(); | 1332 | return s->painter(); | ||
1338 | } else { | 1333 | } else { | ||
1339 | return NULL; | 1334 | return NULL; | ||
▲ Show 20 Lines • Show All 765 Lines • Show Last 20 Lines |