Eventloop cleanup (#2577)

* eventloop: Use eventloop namespace in cpp files

* changelog: Add missing deprecated hook message

* Make eventloop and ipc classes non-copyable and non-movable

* Remove functional.hpp

* eventloop: Don't close handles in error cases

Client should be responsible for closing handles.

* eventloop: Address invalidation of handle references
This commit is contained in:
Patrick Ziegler
2022-01-22 22:00:26 +01:00
committed by GitHub
parent 3356188056
commit c2f087225c
17 changed files with 86 additions and 80 deletions

View File

@ -10,6 +10,7 @@
#include "x11/connection.hpp"
using namespace polybar;
using namespace eventloop;
int main(int argc, char** argv) {
// clang-format off
@ -58,7 +59,7 @@ int main(int argc, char** argv) {
return EXIT_SUCCESS;
}
eventloop::eventloop loop{};
loop loop{};
//==================================================
// Connect to X server