Unfreeze dcon on idle.
This commit is contained in:
parent
a09a786ff7
commit
a2a9cd2f70
@ -37,6 +37,7 @@ sys.path.insert(0, env.get_shell_path())
|
||||
from view.Shell import Shell
|
||||
from model.shellmodel import ShellModel
|
||||
from shellservice import ShellService
|
||||
from hardware import hardwaremanager
|
||||
from intro import intro
|
||||
|
||||
def _start_matchbox():
|
||||
@ -81,7 +82,14 @@ def check_cm(bus_name):
|
||||
pass
|
||||
return False
|
||||
|
||||
def _unfreeze_dcon_idle_cb():
|
||||
# Unfreeze the display when it's stable
|
||||
hw_manager = hardwaremanager.get_manager()
|
||||
hw_manager.set_dcon_freeze(0)
|
||||
|
||||
def main():
|
||||
gobject.idle_add(_unfreeze_dcon_idle_cb)
|
||||
|
||||
_save_session_info()
|
||||
_start_matchbox()
|
||||
_setup_translations()
|
||||
|
@ -36,7 +36,6 @@ from view.frame.frame import Frame
|
||||
from view.keyhandler import KeyHandler
|
||||
from view.home.HomeWindow import HomeWindow
|
||||
from model.shellmodel import ShellModel
|
||||
from hardware import hardwaremanager
|
||||
|
||||
class Shell(gobject.GObject):
|
||||
def __init__(self, model):
|
||||
@ -69,10 +68,6 @@ class Shell(gobject.GObject):
|
||||
home_model.connect('pending-activity-changed',
|
||||
self._pending_activity_changed_cb)
|
||||
|
||||
# Unfreeze the display when it's stable
|
||||
hw_manager = hardwaremanager.get_manager()
|
||||
hw_manager.set_dcon_freeze(0)
|
||||
|
||||
gobject.idle_add(self._start_journal_idle)
|
||||
|
||||
def _start_journal_idle(self):
|
||||
|
Loading…
Reference in New Issue
Block a user