Avoid unneccesary QPA, again

This commit is contained in:
Ilya Fedin 2022-09-03 01:26:23 +04:00 committed by John Preston
parent a6a9b16358
commit b48674d302
1 changed files with 1 additions and 9 deletions

View File

@ -39,8 +39,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtGui/QWindow> #include <QtGui/QWindow>
#include <QtGui/QScreen> #include <QtGui/QScreen>
#include <QtWidgets/QApplication> #include <QtWidgets/QApplication>
#include <qpa/qplatformwindow.h>
#include <qpa/qwindowsysteminterface.h>
namespace Media { namespace Media {
namespace View { namespace View {
@ -630,14 +628,8 @@ void PipPanel::handleWaylandResize(QSize size) {
size.height() * scaled.width() / scaled.height(), size.height() * scaled.width() / scaled.height(),
size.height()) size.height())
: scaled; : scaled;
const auto newGeometry = QRect(widget()->geometry().topLeft(), normalized);
QWindowSystemInterface::handleGeometryChange<QWindowSystemInterface::SynchronousDelivery>(
widget()->windowHandle(),
newGeometry);
setGeometry(newGeometry);
widget()->windowHandle()->handle()->setGeometry(newGeometry);
widget()->resize(normalized);
_inHandleWaylandResize = false; _inHandleWaylandResize = false;
} }