src/components/bar.cpp
/**
 * Show the bar by mapping its X window and
 * trigger a redraw of previous content
 */
Show the bar by mapping its X window and
trigger a redraw of previous content
Show the bar by mapping its X window and trigger a redraw of previous content
void bar::show() {
  if (m_visible) {
    return;
  }
  try {
    m_log.info("Showing bar window");
    m_sig.emit(visibility_change{true});
    reconfigure_window();
    m_connection.map_window_checked(m_opts.window);
    m_connection.flush();
    m_visible = true;
    parse(string{m_lastinput}, true);
  } catch (const exception& err) {
    m_log.err("Failed to map bar window (err=%s", err.what());
  }
}
void bar :: show ( ) { if ( m_visible ) { return ; } try { m_log . info ( " " ) ; m_sig . emit ( visibility_change { true } ) ; reconfigure_window ( ) ; m_connection . map_window_checked ( m_opts . window ) ; m_connection . flush ( ) ; m_visible = true ; parse ( string { m_lastinput } , true ) ; } catch ( const exception & err ) { m_log . err ( " " , err . what ( ) ) ; } }
Show the bar by mapping its X window and
 trigger a redraw of previous content
Show the bar by mapping its X window and trigger a redraw of previous content
/**
     * First reconfigures the window so that WMs that discard some information
     * when unmapping have the correct window properties (geometry etc).
     */