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

« back to all changes in this revision

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

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:
57
57
  virtual bool IsWindowObscured(guint32 xid) = 0;
58
58
  virtual bool IsWindowMapped(guint32 xid) = 0;
59
59
  virtual bool IsWindowVisible(guint32 xid) = 0;
 
60
  virtual bool IsWindowOnTop(guint32 xid) = 0;
60
61
  virtual bool IsWindowClosable(guint32 xid) = 0;
61
62
  virtual bool IsWindowMinimizable(guint32 xid) = 0;
62
63
  virtual bool IsWindowMaximizable(guint32 xid) = 0;