mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't use QWindowSystemInterface in the PiP
It provides no difference, there was a mistake while testing the behavior
This commit is contained in:
parent
be8d91055a
commit
b9181db407
1 changed files with 0 additions and 5 deletions
|
@ -38,8 +38,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 {
|
||||||
|
@ -609,9 +607,6 @@ void PipPanel::handleResize(QSize size) {
|
||||||
: scaled;
|
: scaled;
|
||||||
|
|
||||||
setGeometry(QRect(widget()->geometry().topLeft(), normalized));
|
setGeometry(QRect(widget()->geometry().topLeft(), normalized));
|
||||||
QWindowSystemInterface::handleGeometryChange<QWindowSystemInterface::SynchronousDelivery>(
|
|
||||||
widget()->windowHandle(),
|
|
||||||
widget()->windowHandle()->handle()->geometry());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PipPanel::handleScreenChanged(QScreen *screen) {
|
void PipPanel::handleScreenChanged(QScreen *screen) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue