Created attachment 142309 [details] reproduction of the bug SUMMARY screenshot preview is too big STEPS TO REPRODUCE 1. Open Spectacle. 2. Select Area: Rectangular Region. 3. Take a screenshot with one side is much larger than the other. 4. Drag the image with the mouse. OBSERVED RESULT The preview is too big and it can cover the entire screen. EXPECTED RESULT Small preview, smaller than the original. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2
Can reproduce. Operating System: openSUSE Leap 15.3 KDE Plasma Version: 5.22.90 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 Graphics Platform: X11 Graphics Processor: Mesa DRI Intel® UHD Graphics
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/85
Git commit 6188c743e47761251243a4b1e879e13c24bd0160 by Nate Graham, on behalf of Antonio Prcela. Committed on 25/10/2021 at 19:13. Pushed by ngraham into branch 'master'. Keep screenshot preview within a reasonable size when drag and drop is initiated When one takes a screenshot with one side (either height or width) being around five times bigger than the other size and initiating drag and drop, the preview within the drag becomes comically huge. M +1 -1 src/SpectacleCore.cpp https://invent.kde.org/graphics/spectacle/commit/6188c743e47761251243a4b1e879e13c24bd0160