Skip to content

Commit

Permalink
Fix password on XTightVNC server and updating first screen
Browse files Browse the repository at this point in the history
  • Loading branch information
askervin committed Nov 1, 2017
1 parent 779cc43 commit 97816c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion vncdotool/client.py
Expand Up @@ -417,7 +417,8 @@ def drawCursor(self):

def updateDesktopSize(self, width, height):
new_screen = Image.new("RGB", (width, height), "black")
new_screen.paste(self.screen, (0, 0))
if self.screen:
new_screen.paste(self.screen, (0, 0))
self.screen = new_screen


Expand Down
4 changes: 2 additions & 2 deletions vncdotool/rfb.py
Expand Up @@ -631,8 +631,8 @@ def setKey(self, key):
for i in range(8):
if bsrc & (1 << i):
btgt = btgt | (1 << 7-i)
newkey.append(btgt)
super(RFBDes, self).setKey(bytes(newkey))
newkey.append(chr(btgt))
super(RFBDes, self).setKey(newkey)


# --- test code only, see vncviewer.py
Expand Down

0 comments on commit 97816c3

Please sign in to comment.