~unity-team/unity/trunk

« back to all changes in this revision

Viewing changes to unity-shared/PluginAdapter.cpp

Add unity::WindowManager::GetWindowsInStackingOrder.

Approved by Marco Trevisan (Treviño).

Show diffs side-by-side

added added

removed removed

Lines of Context:
431
431
  return m_Screen->activeWindow();
432
432
}
433
433
 
 
434
std::vector<Window> PluginAdapter::GetWindowsInStackingOrder() const
 
435
{
 
436
  bool stacking_order = true;
 
437
  auto const& windows = m_Screen->clientList(stacking_order);
 
438
 
 
439
  std::vector<Window> ret;
 
440
  for (auto const& window : windows)
 
441
    ret.push_back(window->id());
 
442
 
 
443
  return ret;
 
444
}
 
445
 
434
446
bool PluginAdapter::IsWindowMaximized(Window window_id) const
435
447
{
436
448
  CompWindow* window = m_Screen->findWindow(window_id);