diff --git a/include/components/ipc.hpp b/include/components/ipc.hpp index 40c1560a..c8e18b38 100644 --- a/include/components/ipc.hpp +++ b/include/components/ipc.hpp @@ -11,15 +11,15 @@ POLYBAR_NS * Message types */ struct ipc_command { - static constexpr auto prefix{"cmd:"}; + static constexpr const char* prefix{"cmd:"}; string payload; }; struct ipc_hook { - static constexpr auto prefix{"hook:"}; + static constexpr const char* prefix{"hook:"}; string payload; }; struct ipc_action { - static constexpr auto prefix{"action:"}; + static constexpr const char* prefix{"action:"}; string payload; }; diff --git a/src/components/ipc.cpp b/src/components/ipc.cpp index 5a3122b1..f235022a 100644 --- a/src/components/ipc.cpp +++ b/src/components/ipc.cpp @@ -20,7 +20,7 @@ ipc::~ipc() { if (!m_fifo.empty()) { m_log.info("Interrupting ipc message receiver"); - auto f{make_unique(m_fifo)}; + auto f = make_unique(m_fifo); char p[1]{'q'}; fwrite(p, sizeof(char), sizeof(p), (*f)()); diff --git a/src/x11/window.cpp b/src/x11/window.cpp index f9bdaef3..44e41c9e 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -20,8 +20,8 @@ window window::create_checked(int16_t x, int16_t y, uint16_t w, uint16_t h, uint *this = conn.generate_id(); } - auto root{conn.screen()->root}; - auto copy{XCB_COPY_FROM_PARENT}; + auto root = conn.screen()->root; + auto copy = XCB_COPY_FROM_PARENT; uint32_t values[16]{0}; xutils::pack_values(mask, p, values); conn.create_window_checked(copy, *this, root, x, y, w, h, 0, copy, copy, mask, values);