Implement wxEVT_DPI_CHANGED generation for wxGTK

Just check if the scale factor has changed when getting a "configure"
event for a TLW as we're guaranteed to get one when the scale factor
does change, according to GTK documentation (and it does seem to work).

Closes #19290.
This commit is contained in:
Vadim Zeitlin 2023-11-06 22:44:54 +01:00
parent 6080dca576
commit 88a39aa6f8
3 changed files with 33 additions and 0 deletions

View file

@ -190,6 +190,11 @@ private:
bool m_updateDecorSize;
bool m_deferShowAllowed;
#ifdef __WXGTK3__
// last known scale factor value
double m_scaleFactor;
#endif // __WXGTK3__
};
#endif // _WX_GTK_TOPLEVEL_H_