comparison src/frame-x.c @ 102:a145efe76779 r20-1b3

Import from CVS: tag r20-1b3
author cvs
date Mon, 13 Aug 2007 09:15:49 +0200
parents c0c698873ce1
children cf808b4c4290
comparison
equal deleted inserted replaced
101:a0ec055d74dd 102:a145efe76779
2285 2285
2286 if (!XGetWindowAttributes (display, 2286 if (!XGetWindowAttributes (display,
2287 XtWindow (FRAME_X_SHELL_WIDGET (f)), 2287 XtWindow (FRAME_X_SHELL_WIDGET (f)),
2288 &xwa)) 2288 &xwa))
2289 result = 0; 2289 result = 0;
2290 #ifdef 0
2291 /* This is wrong. Under XEmacs visible means "Mapped" not really visible.
2292 Under virtual window managers this causes freezes. JV
2293
2294 Fixme: This might be need to be changed, or another
2295 frame->RealyVisible may need to be added to guide the actual
2296 redisplay. */
2290 else 2297 else
2291 result = xwa.map_state == IsViewable; 2298 result = xwa.map_state == IsViewable;
2292 2299 For now this better.
2300 #endif
2301 result = (xwa.map_state != IsUnmapped);
2302
2293 f->visible = result; 2303 f->visible = result;
2294 return result; 2304 return result;
2295 } 2305 }
2296 2306
2297 static int 2307 static int