~themuso/unity/set-focus-to-false-on-window-deactivation

« back to all changes in this revision

Viewing changes to decorations/DecorationsSlidingLayout.cpp

  • Committer: CI Train Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2015-02-19 19:33:36 UTC
  • mfrom: (3899.2.85 lim-everywhere)
  • Revision ID: ci-train-bot@canonical.com-20150219193336-1ax9aswzdijrfq0f
Decorations, Panel: add menus for unfocused windows as well

Now the indicator-appmenu exports the menus for all the windows,
then it's up to us to filter them based on their parent window and
show on relevant place.
Also, set LIM as default now. Fixes: #1309778
Approved by: Andrea Azzarone, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
  auto& main_item_ = items_[ItemRole::MAIN];
138
138
  auto& input_item_ = items_[ItemRole::INPUT];
139
139
 
140
 
  if (!input_item_)
 
140
  if (!input_item_ || !input_item_->visible())
141
141
  {
142
142
    if (main_item_)
143
143
      main_item_->Draw(ctx, transformation, attrib, clip, mask);