fix: invalidate buffers on WM_DPICHANGED (#5664)

This commit is contained in:
nerix
2024-10-19 20:42:37 +02:00
committed by GitHub
parent 5c9b17c31a
commit 9345050868
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -876,6 +876,14 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message,
}
break;
case WM_DPICHANGED: {
// wait for Qt to process this message
postToThread([] {
getApp()->getWindows()->invalidateChannelViewBuffers();
});
}
break;
case WM_NCLBUTTONDOWN:
case WM_NCLBUTTONUP: {
// WM_NCLBUTTON{DOWN, UP} gets called when the left mouse button