comparison src/device-x.c @ 2007:65a5016a896f

[xemacs-hg @ 2004-04-12 10:35:11 by stephent] fix X hangs <877jwl8p3x.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Mon, 12 Apr 2004 10:35:13 +0000
parents da8cdcec6dff
children ce294639d321
comparison
equal deleted inserted replaced
2006:1ea9c87af805 2007:65a5016a896f
784 DEVICE_X_COLORMAP (d) = cmap; 784 DEVICE_X_COLORMAP (d) = cmap;
785 DEVICE_X_DEPTH (d) = depth; 785 DEVICE_X_DEPTH (d) = depth;
786 validify_resource_component ((char *) XSTRING_DATA (DEVICE_NAME (d)), 786 validify_resource_component ((char *) XSTRING_DATA (DEVICE_NAME (d)),
787 XSTRING_LENGTH (DEVICE_NAME (d))); 787 XSTRING_LENGTH (DEVICE_NAME (d)));
788 788
789 /* #### If we're going to implement X session management, this would
790 be the place. Make sure it doesn't conflict with GNOME. */
789 { 791 {
790 Arg al[3]; 792 Arg al[3];
791 XtSetArg (al[0], XtNvisual, visual); 793 XtSetArg (al[0], XtNvisual, visual);
792 XtSetArg (al[1], XtNdepth, depth); 794 XtSetArg (al[1], XtNdepth, depth);
793 XtSetArg (al[2], XtNcolormap, cmap); 795 XtSetArg (al[2], XtNcolormap, cmap);
1079 } 1081 }
1080 #endif /* EXTERNAL_WIDGET */ 1082 #endif /* EXTERNAL_WIDGET */
1081 1083
1082 /* #### this should issue a warning instead of outputting to stderr */ 1084 /* #### this should issue a warning instead of outputting to stderr */
1083 depth = begin_dont_check_for_quit (); 1085 depth = begin_dont_check_for_quit ();
1086 #if 0
1087 /* This ends up calling X, which isn't allowed in an X error handler
1088 */
1084 stderr_out ("\n%s: ", 1089 stderr_out ("\n%s: ",
1085 (STRINGP (Vinvocation_name) 1090 (STRINGP (Vinvocation_name)
1086 ? (char *) XSTRING_DATA (Vinvocation_name) 1091 ? (char *) XSTRING_DATA (Vinvocation_name)
1087 : "xemacs")); 1092 : "xemacs"));
1093 #endif
1088 XmuPrintDefaultErrorMessage (disp, event, stderr); 1094 XmuPrintDefaultErrorMessage (disp, event, stderr);
1089 unbind_to (depth); 1095 unbind_to (depth);
1090 } 1096 }
1091 return 0; 1097 return 0;
1092 } 1098 }