Skip to content

Commit

Permalink
don't show any warnings parsing 'desktop-scaling=no'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 26, 2024
1 parent 0165c0c commit 6a3eefd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/util/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os

from xpra.util.env import envfloat
from xpra.scripts.config import TRUE_OPTIONS
from xpra.scripts.config import TRUE_OPTIONS, FALSE_OPTIONS
from xpra.log import Logger

MIN_SCALING = envfloat("XPRA_MIN_SCALING", 0.1)
Expand Down Expand Up @@ -38,7 +38,7 @@ def parse_scaling(desktop_scaling: str, root_w: int, root_h: int,
min_scaling=MIN_SCALING, max_scaling=MAX_SCALING) -> tuple[float, float]:
log = Logger("util", "scaling")
log("parse_scaling(%s)", (desktop_scaling, root_w, root_h, min_scaling, max_scaling))
if desktop_scaling in TRUE_OPTIONS:
if desktop_scaling in TRUE_OPTIONS or desktop_scaling in FALSE_OPTIONS:
return 1, 1
if desktop_scaling.startswith("auto"):
# figure out if the command line includes settings to use for auto mode:
Expand Down

0 comments on commit 6a3eefd

Please sign in to comment.