Mercurial > hg > xemacs-beta
comparison src/frame-x.c @ 175:2d532a89d707 r20-3b14
Import from CVS: tag r20-3b14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:50:14 +0200 |
parents | 15872534500d |
children | 6075d714658b |
comparison
equal
deleted
inserted
replaced
174:bb3568571b84 | 175:2d532a89d707 |
---|---|
2304 } | 2304 } |
2305 | 2305 |
2306 static int | 2306 static int |
2307 x_frame_visible_p (struct frame *f) | 2307 x_frame_visible_p (struct frame *f) |
2308 { | 2308 { |
2309 #if 0 | |
2309 Display *display = DEVICE_X_DISPLAY (XDEVICE (f->device)); | 2310 Display *display = DEVICE_X_DISPLAY (XDEVICE (f->device)); |
2310 XWindowAttributes xwa; | 2311 XWindowAttributes xwa; |
2311 int result; | 2312 int result; |
2312 | 2313 |
2313 /* JV: | 2314 /* JV: |
2327 For now we just return the XEmacs internal value --- which might not be up | 2328 For now we just return the XEmacs internal value --- which might not be up |
2328 to date. Is that a problem? ---. Otherwise we should | 2329 to date. Is that a problem? ---. Otherwise we should |
2329 use async visibility like in standard Emacs. | 2330 use async visibility like in standard Emacs. |
2330 */ | 2331 */ |
2331 | 2332 |
2332 #if 0 | |
2333 if (!XGetWindowAttributes (display, | 2333 if (!XGetWindowAttributes (display, |
2334 XtWindow (FRAME_X_SHELL_WIDGET (f)), | 2334 XtWindow (FRAME_X_SHELL_WIDGET (f)), |
2335 &xwa)) | 2335 &xwa)) |
2336 result = 0; | 2336 result = 0; |
2337 else | 2337 else |
2339 /* In this implementation it should at least be != IsUnmapped | 2339 /* In this implementation it should at least be != IsUnmapped |
2340 JV */ | 2340 JV */ |
2341 | 2341 |
2342 f->visible = result; | 2342 f->visible = result; |
2343 return result; | 2343 return result; |
2344 #endif | 2344 #endif /* 0 */ |
2345 | 2345 |
2346 return f->visible; | 2346 return f->visible; |
2347 } | 2347 } |
2348 | 2348 |
2349 static int | 2349 static int |