Skip to content

Commit

Permalink
it seems gtk.Screen.get_monitor_plug_name can return None, so replace…
Browse files Browse the repository at this point in the history
… it with an empty string to avoid error in network encoder

git-svn-id: https://xpra.org/svn/Xpra/trunk@1409 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 28, 2012
1 parent 18d18f7 commit 0566fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def get_screen_sizes(self):
monitors = []
while j<screen.get_n_monitors():
geom = screen.get_monitor_geometry(j)
monitor = (screen.get_monitor_plug_name(j), geom.x, geom.y, geom.width, geom.height,
monitor = (screen.get_monitor_plug_name(j) or "", geom.x, geom.y, geom.width, geom.height,
screen.get_monitor_width_mm(j), screen.get_monitor_height_mm(j))
monitors.append(monitor)
j += 1
Expand Down

0 comments on commit 0566fa5

Please sign in to comment.