WayfireWM / wayfire

A modular and extensible wayland compositor
https://wayfire.org/
MIT License
2.42k stars 179 forks source link

IPC: Saving modifications in wayfire.ini causes watch_events() to stop working #2493

Open killown opened 1 month ago

killown commented 1 month ago

Modifying && Saving wayfire.ini is causing watch_events() to stop receiving IPC events. It’s possible that wayfire is unnecessarily reloading IPC plugins when changes are made to the configuration, which could be disrupting the event flow.

def watch_events():
    sock.watch()
    while True:
        msg = sock.read_message()
        print(msg)

Expected behavior: watch_events() should continue reading and printing messages after changes are made to wayfire.ini.

Current behavior: After modifying and saving wayfire.ini, the function stops reading messages.