diff options
author | Ken Moore <ken@ixsystems.com> | 2017-07-31 13:05:40 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-07-31 13:05:40 -0400 |
commit | 9b2a9129d27e5666c188a4c3488da87cf7bc3a7d (patch) | |
tree | a3624b5cea30606a764806ab8a70f62dfa742904 /src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp | |
parent | Fix up the grav screensaver a bit so it does not crash on close any more. (diff) | |
download | lumina-9b2a9129d27e5666c188a4c3488da87cf7bc3a7d.tar.gz lumina-9b2a9129d27e5666c188a4c3488da87cf7bc3a7d.tar.bz2 lumina-9b2a9129d27e5666c188a4c3488da87cf7bc3a7d.zip |
A few updates for lumina-screenshot:
When selecting a window/area, make the window transparent.
Ensure the single-instance system works for this apps (was not closing new process).
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp index 2bdd69ae..1cadd4f6 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp @@ -209,14 +209,14 @@ bool MainUI::getWindow(){ this->grabMouse( QCursor(Qt::CrossCursor) ); mousegrabbed = true; this->centralWidget()->setEnabled(false); - //this->hide(); + this->setWindowOpacity(0); return false; //wait for the next click to continue }else if(ui->radio_area->isChecked()){ settings->setValue("screenshot-target", "area"); this->grabMouse( QCursor(Qt::CrossCursor) ); mousegrabbed = true; this->centralWidget()->setEnabled(false); - //this->hide(); + this->setWindowOpacity(0); return false; //wait for the next click to continue }else if(ui->radio_monitor->isChecked()){ //will auto-grab the proper monitor later @@ -247,7 +247,7 @@ void MainUI::getPixmap(){ cpic = scrn->grabWindow(cwin); } } - this->show(); + this->showNormal(); this->setGeometry(lastgeom); lastScreenShot = QDateTime::currentDateTime(); //Now display the pixmap on the label as well @@ -283,6 +283,7 @@ void MainUI::mouseReleaseEvent(QMouseEvent *ev){ mousegrabbed = false; this->centralWidget()->setEnabled(true); this->releaseMouse(); + this->setWindowOpacity(1); if(ui->radio_area->isChecked()){ //Need to determind the rectange which covers the area selected areaOverlay->hide(); |