Fix on click not working
Summary:
When on click is enabled the timeout is always set to -1.
This breaks the logic inside captureScreenshot to display the progressbar in the
taskmanager.
BUG: 409218
Test Plan: Check on click or use spectacle in a wayland session
Reviewers: Spectacle, nicolasfella, ngraham
Reviewed By: Spectacle, ngraham
Subscribers: ngraham, anthonyfieroni
Tags: Spectacle
Differential Revision: https://phabricator.kde.org/D22148