mirror of
https://github.com/polybar/polybar.git
synced 2025-02-17 15:55:20 -05:00
fix(build): Explicit type for list initialization
This commit is contained in:
parent
c6d85b2b92
commit
002eb08b20
3 changed files with 6 additions and 6 deletions
|
@ -11,15 +11,15 @@ POLYBAR_NS
|
||||||
* Message types
|
* Message types
|
||||||
*/
|
*/
|
||||||
struct ipc_command {
|
struct ipc_command {
|
||||||
static constexpr auto prefix{"cmd:"};
|
static constexpr const char* prefix{"cmd:"};
|
||||||
string payload;
|
string payload;
|
||||||
};
|
};
|
||||||
struct ipc_hook {
|
struct ipc_hook {
|
||||||
static constexpr auto prefix{"hook:"};
|
static constexpr const char* prefix{"hook:"};
|
||||||
string payload;
|
string payload;
|
||||||
};
|
};
|
||||||
struct ipc_action {
|
struct ipc_action {
|
||||||
static constexpr auto prefix{"action:"};
|
static constexpr const char* prefix{"action:"};
|
||||||
string payload;
|
string payload;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ ipc::~ipc() {
|
||||||
if (!m_fifo.empty()) {
|
if (!m_fifo.empty()) {
|
||||||
m_log.info("Interrupting ipc message receiver");
|
m_log.info("Interrupting ipc message receiver");
|
||||||
|
|
||||||
auto f{make_unique<file_util::file_ptr>(m_fifo)};
|
auto f = make_unique<file_util::file_ptr>(m_fifo);
|
||||||
char p[1]{'q'};
|
char p[1]{'q'};
|
||||||
|
|
||||||
fwrite(p, sizeof(char), sizeof(p), (*f)());
|
fwrite(p, sizeof(char), sizeof(p), (*f)());
|
||||||
|
|
|
@ -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();
|
*this = conn.generate_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto root{conn.screen()->root};
|
auto root = conn.screen()->root;
|
||||||
auto copy{XCB_COPY_FROM_PARENT};
|
auto copy = XCB_COPY_FROM_PARENT;
|
||||||
uint32_t values[16]{0};
|
uint32_t values[16]{0};
|
||||||
xutils::pack_values(mask, p, values);
|
xutils::pack_values(mask, p, values);
|
||||||
conn.create_window_checked(copy, *this, root, x, y, w, h, 0, copy, copy, mask, values);
|
conn.create_window_checked(copy, *this, root, x, y, w, h, 0, copy, copy, mask, values);
|
||||||
|
|
Loading…
Add table
Reference in a new issue