summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/enso_linux/graphics.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/enso_linux/graphics.py b/linux/enso_linux/graphics.py
index 06f2242..3c948cf 100644
--- a/linux/enso_linux/graphics.py
+++ b/linux/enso_linux/graphics.py
@@ -298,7 +298,9 @@ def getDesktopSize ():
propname, proptype, propvalue = prop
current = propvalue[0]
prop = root.property_get (_NET_WORKAREA)
- if prop is None: return None
+ if prop is None:
+ _, _, width, height, depth = root.get_geometry ()
+ return width, height
propname, proptype, propvalue = prop
_,_, width, height = propvalue[current * 4 : (current + 1) * 4]
return width, height