If the focused app opens a window, chances are you don't need a bouncing
app icon to tell you about it.
---
 src/window.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/window.c b/src/window.c
index bfc4dd7..a0ae2fd 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1209,7 +1209,13 @@ WWindow *wManageWindow(WScreen *scr, Window window)
                                        raise = True;
                                }
                        }
-                       if (!scr->flags.startup) wAppBounce(app);
+
+                       if (!scr->flags.startup) {
+                               WApplication *focused_app = NULL;
+                               if (scr->focused_window)
+                                       focused_app = 
wApplicationOf(scr->focused_window->main_window);
+                               if (app != focused_app) wAppBounce(app);
+                       }
                }
        }
 
-- 
1.7.1


-- 
To unsubscribe, send mail to [email protected].

Reply via email to