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:
parent
89d645539c
commit
12bfa5c89f
1 changed files with 6 additions and 1 deletions
|
@ -233,7 +233,6 @@ class bar : public xpp::event::sink<evt::button_press> {
|
|||
XCB_AUX_ADD_PARAM(&mask, ¶ms, 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, ¶ms);
|
||||
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 {{{
|
||||
|
||||
|
|
Loading…
Reference in a new issue