1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00

fix: Map bar window when fully configured

This commit is contained in:
Michael Carlberg 2016-10-11 08:16:22 +02:00
parent 89d645539c
commit 12bfa5c89f

View file

@ -233,7 +233,6 @@ class bar : public xpp::event::sink<evt::button_press> {
XCB_AUX_ADD_PARAM(&mask, &params, event_mask, XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_BUTTON_PRESS);
// clang-format on
m_window.create_checked(m_bar.x, m_bar.y, m_bar.width, m_bar.height, mask, &params);
m_window.map_checked();
}
m_log.trace("bar: Set WM_NAME");
@ -271,6 +270,12 @@ class bar : public xpp::event::sink<evt::button_press> {
m_window, m_bar.width, m_bar.height);
}
m_log.trace("bar: Map window");
{
m_connection.flush();
m_connection.map_window_checked(m_window);
}
// }}}
// Create graphic contexts {{{