mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Add fractional scaling workaround
This commit is contained in:
parent
accb20c3e9
commit
5f40fd6083
1 changed files with 5 additions and 0 deletions
|
@ -576,6 +576,11 @@ def _run(argv: Optional[list[str]] = None, exec: bool = True) -> Optional[AnkiAp
|
|||
if os.environ.get("ANKI_SOFTWAREOPENGL"):
|
||||
QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL)
|
||||
|
||||
# Work around broken fractional scaling in Wayland
|
||||
# https://bugreports.qt.io/browse/QTBUG-113574
|
||||
if is_lin and qtmajor > 5:
|
||||
os.environ["QT_SCALE_FACTOR_ROUNDING_POLICY"] = "RoundPreferFloor"
|
||||
|
||||
# fix an issue on Windows, where Ctrl+Alt shortcuts are triggered by AltGr,
|
||||
# preventing users from typing things like "@" through AltGr+Q on a German
|
||||
# keyboard.
|
||||
|
|
Loading…
Reference in a new issue