Mercurial > hg > xemacs-beta
comparison src/frame-x.c @ 169:15872534500d r20-3b11
Import from CVS: tag r20-3b11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:46:53 +0200 |
parents | 5a88923fcbfe |
children | 2d532a89d707 |
comparison
equal
deleted
inserted
replaced
168:9851d5c6556e | 169:15872534500d |
---|---|
1102 return Qt; | 1102 return Qt; |
1103 } | 1103 } |
1104 return Qnil; | 1104 return Qnil; |
1105 } | 1105 } |
1106 | 1106 |
1107 void | 1107 static void |
1108 x_cde_transfer_callback (Widget widget, XtPointer clientData, | 1108 x_cde_transfer_callback (Widget widget, XtPointer clientData, |
1109 XtPointer callData) | 1109 XtPointer callData) |
1110 { | 1110 { |
1111 char *filePath, *buf; | 1111 char *filePath, *buf; |
1112 int ii; | 1112 int ii; |
2370 static void | 2370 static void |
2371 x_focus_on_frame (struct frame *f) | 2371 x_focus_on_frame (struct frame *f) |
2372 { | 2372 { |
2373 XWindowAttributes xwa; | 2373 XWindowAttributes xwa; |
2374 Widget shell_widget; | 2374 Widget shell_widget; |
2375 int viewable; | 2375 int viewable = 0; |
2376 | 2376 |
2377 assert (FRAME_X_P (f)); | 2377 assert (FRAME_X_P (f)); |
2378 | 2378 |
2379 shell_widget = FRAME_X_SHELL_WIDGET (f); | 2379 shell_widget = FRAME_X_SHELL_WIDGET (f); |
2380 if (!XtWindow (shell_widget)) | 2380 if (!XtWindow (shell_widget)) |
2396 if (XGetWindowAttributes (XtDisplay (shell_widget), | 2396 if (XGetWindowAttributes (XtDisplay (shell_widget), |
2397 XtWindow (shell_widget), | 2397 XtWindow (shell_widget), |
2398 &xwa)) | 2398 &xwa)) |
2399 /* JV: it is bad to change the visibility like this, so we don't for the | 2399 /* JV: it is bad to change the visibility like this, so we don't for the |
2400 moment, at least change_frame_visibility should be called | 2400 moment, at least change_frame_visibility should be called |
2401 Note also that under fvwm a frame can me Viewable (and thus Mapped) | 2401 Note also that under fvwm a frame can be Viewable (and thus Mapped) |
2402 but still X-invisible | 2402 but still X-invisible |
2403 f->visible = xwa.map_state == IsViewable; */ | 2403 f->visible = xwa.map_state == IsViewable; */ |
2404 viewable = xwa.map_state == IsViewable; | 2404 viewable = xwa.map_state == IsViewable; |
2405 | 2405 |
2406 | 2406 |
2407 if (viewable) | 2407 if (viewable) |