fix: only invalidate buffers for chat windows (#5666)

This commit is contained in:
nerix
2024-10-21 00:57:37 +02:00
committed by GitHub
parent e35fabfabe
commit 867e3f3ab0
6 changed files with 23 additions and 9 deletions
+7 -4
View File
@@ -877,10 +877,13 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message,
break;
case WM_DPICHANGED: {
// wait for Qt to process this message
postToThread([] {
getApp()->getWindows()->invalidateChannelViewBuffers();
});
if (this->flags_.has(ClearBuffersOnDpiChange))
{
// wait for Qt to process this message
postToThread([] {
getApp()->getWindows()->invalidateChannelViewBuffers();
});
}
}
break;