src/x11/tray_client.cpp
/**
 * Make sure that the window mapping state is correct
 */
Make sure that the window mapping state is correct
Make sure that the window mapping state is correct
void tray_client::ensure_state() const {
  bool should_be_mapped = true;
  if (is_xembed_supported()) {
    should_be_mapped = m_xembed.is_mapped();
  }
  if (!mapped() && should_be_mapped) {
    m_connection.map_window_checked(window());
  } else if (mapped() && !should_be_mapped) {
    m_connection.unmap_window_checked(window());
  }
}
void tray_client :: ensure_state ( ) const { bool should_be_mapped = true ; if ( is_xembed_supported ( ) ) { should_be_mapped = m_xembed . is_mapped ( ) ; } if ( ! mapped ( ) && should_be_mapped ) { m_connection . map_window_checked ( window ( ) ) ; } else if ( mapped ( ) && ! should_be_mapped ) { m_connection . unmap_window_checked ( window ( ) ) ; } }
Make sure that the window mapping state is correct
Make sure that the window mapping state is correct