Skip to content

Commit

Permalink
#1656: doh, make sure we sort the keys since we want the smallest!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@17119 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 9, 2017
1 parent dac8e21 commit 97a818c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/x11/x11_server_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def do_get_best_screen_size(self, desired_w, desired_h, bigger=True):
if not new_size:
screenlog.warn("Warning: no matching resolution found for %sx%s", desired_w, desired_h)
if len(closest)>0:
min_dist = tuple(closest.keys())[0]
min_dist = sorted(closest.keys())[0]
new_size = closest[min_dist]
screenlog.warn(" using %sx%s instead", *new_size)
else:
Expand Down

0 comments on commit 97a818c

Please sign in to comment.