diff src/event-Xt.c @ 16:0293115a14e9 r19-15b91

Import from CVS: tag r19-15b91
author cvs
date Mon, 13 Aug 2007 08:49:20 +0200
parents 9ee227acff29
children 859a2309aef8
line wrap: on
line diff
--- a/src/event-Xt.c	Mon Aug 13 08:48:43 2007 +0200
+++ b/src/event-Xt.c	Mon Aug 13 08:49:20 2007 +0200
@@ -1261,11 +1261,10 @@
       break;
       
     case VisibilityNotify: /* window visiblity has changed */
-      if (event->xvisibility.state == VisibilityUnobscured)
-	FRAME_X_TOTALLY_VISIBLE_P (f) = 1;
-      else
-	FRAME_X_TOTALLY_VISIBLE_P (f) = 0;
-      break;
+     if (event->xvisibility.window == XtWindow (FRAME_X_SHELL_WIDGET (f)))
+ 	FRAME_X_TOTALLY_VISIBLE_P (f) =
+ 	  (event->xvisibility.state == VisibilityUnobscured);
+       break;
       
     case ConfigureNotify:
 #ifdef HAVE_XIM
@@ -1702,7 +1701,7 @@
     char buf[500];
     sprintf (buf, " \"%s\"", XSTRING_DATA (f->name));
     write_string_to_stdio_stream (stderr, 0, (Bufbyte *) buf, 0, strlen (buf),
-                                  FORMAT_DISPLAY);
+                                  FORMAT_TERMINAL);
   }
   stderr_out ("\n");
 }