Avoid unneccesary QPA, again
This commit is contained in:
parent
a6a9b16358
commit
b48674d302
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue