fix: Map bar window when fully configured
This commit is contained in:
parent
89d645539c
commit
12bfa5c89f
@ -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 New Issue
Block a user