Skip to content

Commit

Permalink
fix: invalidate buffers on WM_DPICHANGED
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Oct 19, 2024
1 parent 5c9b17c commit 451c694
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/widgets/BaseWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 451c694

Please sign in to comment.