diff options
-rw-r--r-- | src/widget.cpp | 8 |
1 files 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 |