From 3e6b9539aae9f7d6c3da49d4f4042fa133be9c44 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 1 May 2016 00:13:54 +0200 Subject: Patches for post Applications 16.04.0 bugs in kcalc and spectacle. spectacle: - fix broken HiDPI support. - fix broken rectangular image capture on Nvidia GPU. kcalc: - Fix issue where kcalc has a zero-sized window and appears not to start. --- kde/patch/spectacle/spectacle_rect_capture.patch | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 kde/patch/spectacle/spectacle_rect_capture.patch (limited to 'kde/patch/spectacle/spectacle_rect_capture.patch') diff --git a/kde/patch/spectacle/spectacle_rect_capture.patch b/kde/patch/spectacle/spectacle_rect_capture.patch new file mode 100644 index 0000000..ee77216 --- /dev/null +++ b/kde/patch/spectacle/spectacle_rect_capture.patch @@ -0,0 +1,53 @@ +From: Boudhayan Gupta +Date: Mon, 25 Apr 2016 18:27:49 +0000 +Subject: Unbreak rectangular image grabs for nvidia users. +X-Git-Url: http://quickgit.kde.org/?p=spectacle.git&a=commitdiff&h=abbbe6d13de870f9e9349acc2542cffc5d41b76d +--- +Unbreak rectangular image grabs for nvidia users. + +BUG: 362241 +FIXED-IN: 16.04.1 +--- + + +--- a/src/QuickEditor/QuickEditor.cpp ++++ b/src/QuickEditor/QuickEditor.cpp +@@ -138,24 +138,7 @@ + d->mGrabRect = QRect(x, y, width, height); + SpectacleConfig::instance()->setCropRegion(d->mGrabRect); + +- QQuickItem *target = d->mQuickView->rootObject()->findChild(QStringLiteral("imageBackground")); +- d->mCurrentGrabResult = target->grabToImage(); +- if (d->mCurrentGrabResult.isNull()) { +- emit grabCancelled(); +- return; +- } +- +- connect(d->mCurrentGrabResult.data(), &QQuickItemGrabResult::ready, this, &QuickEditor::grabReadyHandler); ++ d->mQuickView->hide(); ++ emit grabDone(mImageStore->mPixmap.copy(d->mGrabRect), d->mGrabRect); + } + +-void QuickEditor::grabReadyHandler() +-{ +- Q_D(QuickEditor); +- +- QImage croppedImage = d->mCurrentGrabResult->image().copy(d->mGrabRect); +- QPixmap croppedPixmap = QPixmap::fromImage(croppedImage); +- +- d->mQuickView->hide(); +- emit grabDone(croppedPixmap, d->mGrabRect); +-} +- + +--- a/src/QuickEditor/QuickEditor.h ++++ b/src/QuickEditor/QuickEditor.h +@@ -39,7 +39,6 @@ + private slots: + + void acceptImageHandler(int x, int y, int width, int height); +- void grabReadyHandler(); + + private: + + -- cgit v1.2.3