1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: init.c |
2 | * File: init.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: init.C,v 1.17 2004/01/19 17:26:43 pcg Exp $ |
4 | * $Id: init.C,v 1.19 2004/01/28 23:40:50 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
331 | #endif /* KEEP_SCROLLCOLOR */ |
331 | #endif /* KEEP_SCROLLCOLOR */ |
332 | }; |
332 | }; |
333 | |
333 | |
334 | const char *const xa_names[NUM_XA] = |
334 | const char *const xa_names[NUM_XA] = |
335 | { |
335 | { |
|
|
336 | "TEXT", |
336 | "COMPOUND_TEXT", |
337 | "COMPOUND_TEXT", |
|
|
338 | "UTF8_STRING", |
337 | "MULTIPLE", |
339 | "MULTIPLE", |
338 | "TARGETS", |
340 | "TARGETS", |
339 | "TEXT", |
|
|
340 | "TIMESTAMP", |
341 | "TIMESTAMP", |
341 | "VT_SELECTION", |
342 | "VT_SELECTION", |
342 | "INCR", |
343 | "INCR", |
343 | "WM_DELETE_WINDOW", |
344 | "WM_DELETE_WINDOW", |
344 | #ifdef TRANSPARENT |
345 | #ifdef TRANSPARENT |
… | |
… | |
1184 | */ |
1185 | */ |
1185 | |
1186 | |
1186 | #ifdef PREFER_24BIT |
1187 | #ifdef PREFER_24BIT |
1187 | attributes.background_pixel = PixColors[Color_fg]; |
1188 | attributes.background_pixel = PixColors[Color_fg]; |
1188 | attributes.border_pixel = PixColors[Color_border]; |
1189 | attributes.border_pixel = PixColors[Color_border]; |
1189 | attributes.colormap = XCMAP; |
1190 | attributes.colormap = Xcmap; |
1190 | TermWin.parent[0] = XCreateWindow (Xdisplay, DefaultRootWindow (Xdisplay), |
1191 | TermWin.parent[0] = XCreateWindow (Xdisplay, DefaultRootWindow (Xdisplay), |
1191 | szHint.x, szHint.y, |
1192 | szHint.x, szHint.y, |
1192 | szHint.width, szHint.height, |
1193 | szHint.width, szHint.height, |
1193 | TermWin.ext_bwidth, |
1194 | TermWin.ext_bwidth, |
1194 | XDEPTH, InputOutput, |
1195 | Xdepth, InputOutput, |
1195 | XVISUAL, |
1196 | Xvisual, |
1196 | CWBackPixel | CWBorderPixel |
1197 | CWBackPixel | CWBorderPixel |
1197 | | CWColormap, &attributes); |
1198 | | CWColormap, &attributes); |
1198 | #else |
1199 | #else |
1199 | TermWin.parent[0] = XCreateSimpleWindow (Xdisplay, DefaultRootWindow (Xdisplay), |
1200 | TermWin.parent[0] = XCreateSimpleWindow (Xdisplay, DefaultRootWindow (Xdisplay), |
1200 | szHint.x, szHint.y, |
1201 | szHint.x, szHint.y, |