Revert "Merge branch '917-event-based-pulseaudio'"
This reverts commit72a888748e
, reversing changes made tod57ef9364a
. This merge causes really high CPU load if using both pasink and pasource, because those two modules trigger each other, and there's not a terrible lot I can do about that, unfortunately.
This commit is contained in:
parent
72a888748e
commit
28601cf2b7
3 changed files with 9 additions and 59 deletions
|
@ -75,7 +75,6 @@ def handle_events(config, update_lock):
|
|||
|
||||
|
||||
def main():
|
||||
global started
|
||||
config = core.config.Config(sys.argv[1:])
|
||||
level = logging.DEBUG if config.debug() else logging.ERROR
|
||||
if config.logfile():
|
||||
|
@ -98,8 +97,6 @@ def main():
|
|||
core.input.register(None, core.input.WHEEL_UP, "i3-msg workspace prev_on_output")
|
||||
core.input.register(None, core.input.WHEEL_DOWN, "i3-msg workspace next_on_output")
|
||||
|
||||
core.event.trigger("start")
|
||||
|
||||
update_lock = threading.Lock()
|
||||
event_thread = threading.Thread(target=handle_events, args=(config, update_lock, ))
|
||||
event_thread.daemon = True
|
||||
|
@ -130,6 +127,7 @@ def main():
|
|||
if util.format.asbool(config.get("engine.collapsible", True)) == True:
|
||||
core.input.register(None, core.input.MIDDLE_MOUSE, output.toggle_minimize)
|
||||
|
||||
core.event.trigger("start")
|
||||
started = True
|
||||
signal.signal(10, sig_USR1_handler)
|
||||
while True:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue