src/components/bar.cpp
/**
 * Hide the bar by unmapping its X window
 */
Hide the bar by unmapping its X window
Hide the bar by unmapping its X window
void bar::hide() {
  if (!m_visible) {
    return;
  }
  try {
    m_log.info("Hiding bar window");
    m_sig.emit(visibility_change{false});
    m_connection.unmap_window_checked(m_opts.window);
    m_connection.flush();
    m_visible = false;
  } catch (const exception& err) {
    m_log.err("Failed to unmap bar window (err=%s", err.what());
  }
}
void bar :: hide ( ) { if ( ! m_visible ) { return ; } try { m_log . info ( " " ) ; m_sig . emit ( visibility_change { false } ) ; m_connection . unmap_window_checked ( m_opts . window ) ; m_connection . flush ( ) ; m_visible = false ; } catch ( const exception & err ) { m_log . err ( " " , err . what ( ) ) ; } }
Hide the bar by unmapping its X window
Hide the bar by unmapping its X window