src/modules/xworkspaces.cpp
/**
   * Goes through all clients and updates the urgent hints on the desktop they are on.
   */
Goes through all clients and updates the urgent hints on the desktop they are on.
Goes through all clients and updates the urgent hints on the desktop they are on .
void xworkspaces_module::rebuild_urgent_hints() {
    m_urgent_desktops.assign(m_desktop_names.size(), false);
    for (auto&& client : ewmh_util::get_client_list()) {
      auto desk = ewmh_util::get_desktop_from_window(client);
      if (desk < m_urgent_desktops.size()) {
        m_urgent_desktops[desk] = m_urgent_desktops[desk] || icccm_util::get_wm_urgency(m_connection, client);
      }
    }
  }
void xworkspaces_module :: rebuild_urgent_hints ( ) { m_urgent_desktops . assign ( m_desktop_names . size ( ) , false ) ; for ( auto && client : ewmh_util :: get_client_list ( ) ) { auto desk = ewmh_util :: get_desktop_from_window ( client ) ; if ( desk < m_urgent_desktops . size ( ) ) { m_urgent_desktops [ desk ] = m_urgent_desktops [ desk ] || icccm_util :: get_wm_urgency ( m_connection , client ) ; } } }
Goes through all clients and updates the urgent hints on the desktop they are on.
Goes through all clients and updates the urgent hints on the desktop they are on .
/*
       * EWMH allows for 0xFFFFFFFF to be returned here, which means the window
       * should appear on all desktops.
       *
       * We don't take those windows into account for the urgency hint because
       * it would mark all workspaces as urgent.
       */