Set screen bounds for active window grab when compositor is disabled

Authored by anemeth on Mar 6 2018, 8:27 PM.

Description

Set screen bounds for active window grab when compositor is disabled

Summary:
It failed to capture the window area when the window was outside of the screen and showed a null image to the user when compositor was not enabled.
Now it only captures the area that is on the screen.

BUG: 390652

Reviewers: Spectacle, rkflx, ngraham, broulik

Reviewed By: Spectacle, rkflx, ngraham

Subscribers: davidedmundson, broulik, ngraham

Tags: Spectacle

Differential Revision: https://phabricator.kde.org/D10672

Details