Changeset View
Changeset View
Standalone View
Standalone View
effects/showpaint/showpaint.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
53 | toggleAction->setText(i18n("Toggle Show Paint")); | 53 | toggleAction->setText(i18n("Toggle Show Paint")); | ||
54 | KGlobalAccel::self()->setDefaultShortcut(toggleAction, {}); | 54 | KGlobalAccel::self()->setDefaultShortcut(toggleAction, {}); | ||
55 | KGlobalAccel::self()->setShortcut(toggleAction, {}); | 55 | KGlobalAccel::self()->setShortcut(toggleAction, {}); | ||
56 | effects->registerGlobalShortcut({}, toggleAction); | 56 | effects->registerGlobalShortcut({}, toggleAction); | ||
57 | 57 | | |||
58 | connect(toggleAction, &QAction::triggered, this, &ShowPaintEffect::toggle); | 58 | connect(toggleAction, &QAction::triggered, this, &ShowPaintEffect::toggle); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | void ShowPaintEffect::paintScreen(int mask, QRegion region, ScreenPaintData &data) | 61 | void ShowPaintEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData &data) | ||
62 | { | 62 | { | ||
63 | m_painted = QRegion(); | 63 | m_painted = QRegion(); | ||
64 | effects->paintScreen(mask, region, data); | 64 | effects->paintScreen(mask, region, data); | ||
65 | if (effects->isOpenGLCompositing()) { | 65 | if (effects->isOpenGLCompositing()) { | ||
66 | paintGL(data.projectionMatrix()); | 66 | paintGL(data.projectionMatrix()); | ||
67 | } | 67 | } | ||
68 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | 68 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | ||
69 | if (effects->compositingType() == XRenderCompositing) { | 69 | if (effects->compositingType() == XRenderCompositing) { | ||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |