Skip to content

Commit

Permalink
#1656: in desktop mode, choose a resolution smaller than the one requ…
Browse files Browse the repository at this point in the history
…ested when we don't find an exact match

git-svn-id: https://xpra.org/svn/Xpra/trunk@17165 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 12, 2017
1 parent 8d1e506 commit 257c9b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xpra/x11/desktop_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def do_resize(self):
try:
with xsync:
ow, oh = RandR.get_screen_size()
w, h = self.set_screen_size(rw, rh)
w, h = self.set_screen_size(rw, rh, False)
if (ow, oh) == (w, h):
#this is already the resolution we have,
#but the client has other ideas,
Expand Down
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 @@ -536,7 +536,7 @@ def do_get_best_screen_size(self, desired_w, desired_h, bigger=True):
return w, h

def set_screen_size(self, desired_w, desired_h, bigger=True):
screenlog("set_screen_size%s", (desired_w, desired_h))
screenlog("set_screen_size%s", (desired_w, desired_h, bigger))
root_w, root_h = self.root_window.get_size()
if not self.randr:
return root_w,root_h
Expand Down

0 comments on commit 257c9b3

Please sign in to comment.