diff --git a/effects/screenshot/screenshot.h b/effects/screenshot/screenshot.h --- a/effects/screenshot/screenshot.h +++ b/effects/screenshot/screenshot.h @@ -87,11 +87,7 @@ **/ Q_SCRIPTABLE QString screenshotFullscreen(bool captureCursor = false); /** - * Starts an interactive screenshot session. - * - * The user is asked to confirm that a screenshot is taken by having to actively - * click and giving the possibility to cancel. - * + * Takes a screenshot of all screens. * Once the screenshot is taken it gets saved into the @p fd passed to the * method. It is intended to be used with a pipe, so that the invoking side can just * read from the pipe. The image gets written into the fd using a QDataStream. diff --git a/effects/screenshot/screenshot.cpp b/effects/screenshot/screenshot.cpp --- a/effects/screenshot/screenshot.cpp +++ b/effects/screenshot/screenshot.cpp @@ -508,20 +508,8 @@ } m_captureCursor = captureCursor; - showInfoMessage(InfoMessageMode::Screen); - effects->startInteractivePositionSelection( - [this] (const QPoint &p) { - hideInfoMessage(); - if (p == QPoint(-1, -1)) { - // error condition - close(m_fd); - m_fd = -1; - } else { - m_scheduledGeometry = effects->virtualScreenGeometry(); - effects->addRepaint(m_scheduledGeometry); - } - } - ); + m_scheduledGeometry = effects->virtualScreenGeometry(); + effects->addRepaintFull(); } QString ScreenShotEffect::screenshotScreen(int screen, bool captureCursor)