mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix positioning of screen grabber window
This commit is contained in:
parent
7b2610e4fb
commit
04219e8c1d
|
@ -78,10 +78,10 @@ void ScreenshotGrabber::showGrabber()
|
|||
this->window->grabKeyboard();
|
||||
|
||||
QRect fullGrabbedRect = screenGrab.rect();
|
||||
qDebug() << "adjusting grabber size to" << fullGrabbedRect;
|
||||
QRect nr(QPoint(-1,-1), fullGrabbedRect.size());
|
||||
|
||||
this->window->setGeometry(fullGrabbedRect);
|
||||
this->window->scene()->setSceneRect(fullGrabbedRect);
|
||||
this->window->setGeometry(nr);
|
||||
this->scene->setSceneRect(fullGrabbedRect);
|
||||
this->overlay->setRect(fullGrabbedRect);
|
||||
|
||||
adjustTooltipPosition();
|
||||
|
|
Loading…
Reference in New Issue
Block a user