From 12bfa5c89f8ca4d79bb14fb132e591d66eea1900 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 11 Oct 2016 08:16:22 +0200 Subject: [PATCH] fix: Map bar window when fully configured --- include/components/bar.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/components/bar.hpp b/include/components/bar.hpp index a8149a17..b8763e19 100644 --- a/include/components/bar.hpp +++ b/include/components/bar.hpp @@ -233,7 +233,6 @@ class bar : public xpp::event::sink { 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 { 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 {{{