Don't use QWindowSystemInterface in the PiP

It provides no difference, there was a mistake while testing the behavior
This commit is contained in:
Ilya Fedin 2022-08-12 18:05:17 +04:00 committed by John Preston
parent be8d91055a
commit b9181db407

View file

@ -38,8 +38,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtGui/QWindow>
#include <QtGui/QScreen>
#include <QtWidgets/QApplication>
#include <qpa/qplatformwindow.h>
#include <qpa/qwindowsysteminterface.h>
namespace Media {
namespace View {
@ -609,9 +607,6 @@ void PipPanel::handleResize(QSize size) {
: scaled;
setGeometry(QRect(widget()->geometry().topLeft(), normalized));
QWindowSystemInterface::handleGeometryChange<QWindowSystemInterface::SynchronousDelivery>(
widget()->windowHandle(),
widget()->windowHandle()->handle()->geometry());
}
void PipPanel::handleScreenChanged(QScreen *screen) {