[gnome-builder] notification: fix toplevel check



commit d766741cf1141f934ff531c6612141f64126e303
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 31 21:58:58 2018 -0800

    notification: fix toplevel check
    
    The two checks for active window vs is_active() were doing separate things.
    So bring this back.

 src/plugins/notification/ide-notification-addin.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/notification/ide-notification-addin.c 
b/src/plugins/notification/ide-notification-addin.c
index b6bed29e4..422673066 100644
--- a/src/plugins/notification/ide-notification-addin.c
+++ b/src/plugins/notification/ide-notification-addin.c
@@ -82,6 +82,9 @@ ide_notification_addin_notify (IdeNotificationAddin *self,
   if (!(window = gtk_application_get_active_window (app)))
     return;
 
+  if (gtk_window_is_active (window))
+    return;
+
   context = ide_object_get_context (IDE_OBJECT (self));
   project = ide_context_get_project (context);
   project_name = ide_project_get_name (project);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]