Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Cameron <quozl@laptop.org>2010-03-22 12:31:32 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2010-03-22 12:31:32 (GMT)
commit6150564fe43e7e756323e69540bee16e6e6129a6 (patch)
tree452a5311996e01ed79ea65498bd4a0bfcea38bcc
parentd8107a056f641de833a1417330c2f60f0ab975ff (diff)
screen rotate, avoid xmodmap if xrandr fails (#1667)
-rw-r--r--src/jarabe/view/keyhandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/view/keyhandler.py b/src/jarabe/view/keyhandler.py
index 1da1f6a..0905db4 100644
--- a/src/jarabe/view/keyhandler.py
+++ b/src/jarabe/view/keyhandler.py
@@ -249,9 +249,9 @@ class KeyHandler(object):
# If either the xmodmap or xrandr command fails, check_call will fail
# with CalledProcessError, which we raise.
try:
- subprocess.check_call(argv)
subprocess.check_call(['xrandr', '-o',
states[self._screen_rotation]])
+ subprocess.check_call(argv)
except OSError, e:
if e.errno != errno.EINTR:
raise