From b9bd7c4b240b11548e90f96234dd2e4b9d7d92c9 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Thu, 10 Apr 2014 16:55:28 +0200 Subject: Set mouse pointer after backup, too. Fixed ugly transparency. --- src/widget.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/widget.cpp b/src/widget.cpp index 71280c7..431b0b4 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -199,8 +199,8 @@ Widget::Widget(QWidget *parent) : // Remove borders and stuff setWindowFlags(windowFlags() | Qt::FramelessWindowHint); - setStyleSheet("background:transparent;"); - // setAttribute(Qt::WA_TranslucentBackground); + //setStyleSheet("background:transparent;"); + //setAttribute(Qt::WA_TranslucentBackground); // Resize widget to its content resize(sizeHint()); @@ -364,6 +364,7 @@ void Widget::handleButton(){ this->move( monitorMode->width/2 - this->width()/2, monitorMode->height - this->height()); + // Set the mouse pointer in the middle of the screen QCursor::setPos(monitorMode->width/2, monitorMode->height/2); /*************************** ASK for confirmtion ****************************/ @@ -431,6 +432,9 @@ void Widget::handleButton(){ qDebug() << "Again center dialog on screenbottom"; this->move( ScreenSize.width()/2 - this->width()/2, ScreenSize.height() - this->height()); + + // Set the mouse pointer in the middle of the screen + QCursor::setPos(monitorMode->width/2, monitorMode->height/2); } // Delete the backup -- cgit v1.2.3-55-g7522