mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
@@ -435,15 +435,6 @@ void MainWindow::initSize() {
|
||||
}
|
||||
DEBUG_LOG(("Window Pos: Setting first %1, %2, %3, %4").arg(geometry.x()).arg(geometry.y()).arg(geometry.width()).arg(geometry.height()));
|
||||
setGeometry(geometry);
|
||||
if (geometryScreen != primaryScreen) {
|
||||
// In case screen DPI changed we show the window now,
|
||||
// so that when we call setGeometry() once again after
|
||||
// make_unique<Media::View::OverlayWidget> it already
|
||||
// has adjusted by dpi geometry saved in QWidget.
|
||||
//
|
||||
// Somehow should fix https://github.com/telegramdesktop/tdesktop/issues/6804
|
||||
show();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::positionUpdated() {
|
||||
|
@@ -69,15 +69,17 @@ void LockWidget::showAnimated(const QPixmap &bgAnimCache, bool back) {
|
||||
void LockWidget::animationCallback() {
|
||||
update();
|
||||
if (!_a_show.animating()) {
|
||||
showChildren();
|
||||
_window->widget()->setInnerFocus();
|
||||
|
||||
Ui::showChatsList();
|
||||
|
||||
_cacheUnder = _cacheOver = QPixmap();
|
||||
showFinished();
|
||||
}
|
||||
}
|
||||
|
||||
void LockWidget::showFinished() {
|
||||
showChildren();
|
||||
_window->widget()->setInnerFocus();
|
||||
Ui::showChatsList();
|
||||
_cacheUnder = _cacheOver = QPixmap();
|
||||
}
|
||||
|
||||
void LockWidget::paintEvent(QPaintEvent *e) {
|
||||
Painter p(this);
|
||||
|
||||
|
@@ -32,6 +32,7 @@ public:
|
||||
virtual void setInnerFocus();
|
||||
|
||||
void showAnimated(const QPixmap &bgAnimCache, bool back = false);
|
||||
void showFinished();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *e) override;
|
||||
|
Reference in New Issue
Block a user