2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Get rid of modal parent hack

It was introduced to workaround the absence of size hints propagating in Qt 5.12 Wayland backend, there's no need in it anymore
This commit is contained in:
Ilya Fedin
2021-04-02 15:29:47 +04:00
committed by John Preston
parent 0cd8cc67c5
commit 073b5b106c
8 changed files with 4 additions and 22 deletions

View File

@@ -30,7 +30,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/call_delayed.h"
#include "facades.h"
#include "app.h"
#include "mainwindow.h"
#include "styles/style_dialogs.h"
#include "styles/style_layers.h"
#include "styles/style_window.h"
@@ -422,8 +421,7 @@ Widget::Widget(
QPoint startPosition,
int shift,
Direction shiftDirection)
: RpWidget(Core::App().getModalParent())
, _manager(manager)
: _manager(manager)
, _startPosition(startPosition)
, _direction(shiftDirection)
, _shift(shift)