2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 16:35:44 +00:00

Add Ui::PostponeCall() on return to event loop.

This commit is contained in:
John Preston
2018-12-12 12:59:51 +04:00
parent a167a8587b
commit 89cf733d24
5 changed files with 95 additions and 2 deletions

View File

@@ -375,7 +375,7 @@ void LayerStackWidget::keyPressEvent(QKeyEvent *e) {
}
void LayerStackWidget::mousePressEvent(QMouseEvent *e) {
crl::on_main(this, [=] { backgroundClicked(); });
Ui::PostponeCall(this, [=] { backgroundClicked(); });
}
void LayerStackWidget::backgroundClicked() {