]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/screen-notify.c
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[ion3.git] / ioncore / screen-notify.c
index e65208af3a356ffc279b4ccf2cfd4b3bda234912..add918de8dda362a2053d546333cacf9e829790a 100644 (file)
@@ -3,10 +3,7 @@
  *
  * Copyright (c) Tuomo Valkonen 1999-2007. 
  *
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
  */
 
 #include <string.h>
@@ -377,11 +374,10 @@ void screen_managed_notify(WScreen *scr, WRegion *reg, WRegionNotify how)
 void ioncore_screen_activity_notify(WRegion *reg, WRegionNotify how)
 {
     if(how==ioncore_g.notifies.activity){
-        WScreen *scr=region_screen_of(reg);
-        
-        screen_update_infowin(scr);
-        screen_update_notifywin(scr);
-
+        screen_update_notifywin(region_screen_of(reg));
+    }else if(how==ioncore_g.notifies.name){
+        if(region_is_activity(reg))
+            screen_update_notifywin(region_screen_of(reg));
     }
 }