~3v1n0/unity/missing-launcher-icon-fix-5.0

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/WindowManager.cpp

BamfLauncherIcon: Focus an application if no child window is actually on top of the stack. Raises all urgent windows.

This fixes bug #802816 that happens when an application raises a window on the top of the stack but the focus doesn't change.

Plus, don't perform unneeded checks when focusing non-active applications.. Fixes: https://bugs.launchpad.net/bugs/802816, https://bugs.launchpad.net/bugs/986443. Approved by Tim Penhey.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    return true;
79
79
  }
80
80
 
 
81
  bool IsWindowOnTop(guint32 xid)
 
82
  {
 
83
    return false;
 
84
  }
 
85
 
81
86
  bool IsWindowClosable(guint32 xid)
82
87
  {
83
88
    return true;