Repository navigation
Remove the DpiAware class and the auto_zooming setting - #771
Conversation
Chromium has made the browser and GPU processes DPI aware itself since M108, and CEF 112 removed CefEnableHighDPISupport().
|
Thanks for working on this PR, but there are several issues that need to be resolved before this can be approved:
Please update the PR accordingly. |
|
A quick note to clarify the project's policy on I realize there might be an apparent precedent because we have
Let's keep |
- Add WindowUtils.IsProcessDpiAware() (Windows), implemented in Cython with GetProcessDpiAwareness(), and use it in main_test.py instead of ctypes. - Restore the v49+ and v57.1+ High DPI sections of the migration guide, turning links to the removed docs into plain text. - In the v147 DpiAware entry, note that a GUI toolkit initialized before cef.Initialize() may size its UI for 96 DPI, and point to WindowUtils.IsProcessDpiAware(). - Document High DPI support in api/cefpython.md (Initialize) and the Knowledge Base.
|
Is the new IsProcessDpiAware implementation better than the old one? The WindowUtils object contains functions related to window management. IsProcessDpiAware is not a good place to put there. |
|
I am not a huge fan of implementing win32 cython binding helper for cefpython's unittest use case. When you insist "keep the DPI check", this is how it looks. I don't strongly feel necessary to perform dpi check at cefpython side, considering cefpython has zero dpi aware pyx/c++ implementation after proposed dpiaware class removal. Much more meaningful dpi check is either at chromium or cef side. I am ready to make further adjustment if necessary. |
|
Since DpiAware class was removed there is not much point of unit testing whether process is dpi aware. Is High DPI working fine in all examples? Should we add a comment to |
With the DpiAware class gone, CEF Python has no DPI code of its own left to test; Chromium and CEF cover that. Drop the Cython helper, the Shcore link and the unit test, and point IsProcessDpiAware() users to the Win32 GetProcessDpiAwareness() in the migration guide. Add a comment to tkinter_.py explaining why Tk is not DPI scaled on Windows.
|
I have pushed linesight/cefpython@6136237 which removes High DPI are working fine in all examples except |
|
Looks good. Thanks. |
Fixes #769 , #530