i3ipcpp
i3ipcpp copied to clipboard
``` `home/ned/dev/i3-pager-git/src/i3-pager/i3ipc++/src/ipc.cpp: In constructor ‘i3ipc::connection::connection(const std::string&)’: /home/ned/dev/i3-pager-git/src/i3-pager/i3ipc++/src/ipc.cpp:337:9: error: ‘signal_event’ was not declared in this scope; did you mean ‘sigevent’? 337 | signal_event.connect([this](EventType event_type, const std::shared_ptr& buf) { | ^~~~~~~~~~~~ |...
``` terminate called after throwing an instance of 'Json::LogicError' what(): LargestUInt out of Int range ```
Uses `do { } while (0)` pattern. [StackOverflow Explanation](https://stackoverflow.com/questions/154136/why-use-apparently-meaningless-do-while-and-if-else-statements-in-macros)
This is a feature request for supporting the shutdown event. https://i3wm.org/docs/ipc.html#_shutdown_event Correct me if I'm wrong, but currently the only way to cleanly handle restarts/exits is to catch `i3ipc::eof_error`.