Fix randr
This commit is contained in:
parent
c210b7720b
commit
9d28557bbd
1
NEWS
1
NEWS
@ -1,3 +1,4 @@
|
|||||||
|
* Fix randr. (marco)
|
||||||
* Do not fail if there is not an activity service. (marco)
|
* Do not fail if there is not an activity service. (marco)
|
||||||
* Alert when an activity cannot be saved. (rwh)
|
* Alert when an activity cannot be saved. (rwh)
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
import logging
|
import logging
|
||||||
|
import subprocess
|
||||||
|
|
||||||
import dbus
|
import dbus
|
||||||
import gobject
|
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from hardware import hardwaremanager
|
from hardware import hardwaremanager
|
||||||
@ -197,8 +197,7 @@ class KeyHandler(object):
|
|||||||
if self._screen_rotation == len(states):
|
if self._screen_rotation == len(states):
|
||||||
self._screen_rotation = 0
|
self._screen_rotation = 0
|
||||||
|
|
||||||
gobject.spawn_async(['xrandr', '-o', states[self._screen_rotation]],
|
subprocess.Popen(['xrandr', '-o', states[self._screen_rotation]])
|
||||||
flags=gobject.SPAWN_SEARCH_PATH)
|
|
||||||
|
|
||||||
def handle_quit_emulator(self):
|
def handle_quit_emulator(self):
|
||||||
if os.environ.has_key('SUGAR_EMULATOR_PID'):
|
if os.environ.has_key('SUGAR_EMULATOR_PID'):
|
||||||
|
Loading…
Reference in New Issue
Block a user