diff options
author | James Cameron <quozl@laptop.org> | 2010-03-22 12:31:32 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2010-03-22 12:31:32 (GMT) |
commit | 6150564fe43e7e756323e69540bee16e6e6129a6 (patch) | |
tree | 452a5311996e01ed79ea65498bd4a0bfcea38bcc | |
parent | d8107a056f641de833a1417330c2f60f0ab975ff (diff) |
screen rotate, avoid xmodmap if xrandr fails (#1667)
-rw-r--r-- | src/jarabe/view/keyhandler.py | 2 |
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 |