… | |
… | |
10 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
10 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
11 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
11 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
12 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
12 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
13 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
13 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
14 | * - extensive modifications |
14 | * - extensive modifications |
15 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
15 | * Copyright (c) 2003-2007 Marc Lehmann <pcg@goof.com> |
16 | * |
16 | * |
17 | * This program is free software; you can redistribute it and/or modify |
17 | * This program is free software; you can redistribute it and/or modify |
18 | * it under the terms of the GNU General Public License as published by |
18 | * it under the terms of the GNU General Public License as published by |
19 | * the Free Software Foundation; either version 2 of the License, or |
19 | * the Free Software Foundation; either version 2 of the License, or |
20 | * (at your option) any later version. |
20 | * (at your option) any later version. |
… | |
… | |
287 | pix_colors_focused = new rxvt_color [TOTAL_COLORS]; |
287 | pix_colors_focused = new rxvt_color [TOTAL_COLORS]; |
288 | #ifdef OFF_FOCUS_FADING |
288 | #ifdef OFF_FOCUS_FADING |
289 | pix_colors_unfocused = new rxvt_color [TOTAL_COLORS]; |
289 | pix_colors_unfocused = new rxvt_color [TOTAL_COLORS]; |
290 | #endif |
290 | #endif |
291 | |
291 | |
292 | |
|
|
293 | MEvent.time = CurrentTime; |
292 | MEvent.time = CurrentTime; |
294 | MEvent.button = AnyButton; |
293 | MEvent.button = AnyButton; |
295 | want_refresh = 1; |
294 | want_refresh = 1; |
296 | priv_modes = SavedModes = PrivMode_Default; |
295 | priv_modes = SavedModes = PrivMode_Default; |
297 | ncol = 80; |
296 | ncol = 80; |
298 | nrow = 24; |
297 | nrow = 24; |
299 | int_bwidth = INTERNALBORDERWIDTH; |
298 | int_bwidth = INTERNALBORDERWIDTH; |
300 | ext_bwidth = EXTERNALBORDERWIDTH; |
299 | ext_bwidth = EXTERNALBORDERWIDTH; |
301 | lineSpace = LINESPACE; |
300 | lineSpace = LINESPACE; |
302 | saveLines = SAVELINES; |
301 | saveLines = SAVELINES; |
303 | numpix_colors = TOTAL_COLORS; |
|
|
304 | |
302 | |
305 | refresh_type = SLOW_REFRESH; |
303 | refresh_type = SLOW_REFRESH; |
306 | |
304 | |
307 | oldcursor.row = oldcursor.col = -1; |
305 | oldcursor.row = oldcursor.col = -1; |
308 | last_bot = last_state = -1; |
306 | last_bot = last_state = -1; |
… | |
… | |
414 | if (rs[Rs_depth]) |
412 | if (rs[Rs_depth]) |
415 | select_visual (strtol (rs[Rs_depth], 0, 0)); |
413 | select_visual (strtol (rs[Rs_depth], 0, 0)); |
416 | #endif |
414 | #endif |
417 | |
415 | |
418 | #ifdef HAVE_AFTERIMAGE |
416 | #ifdef HAVE_AFTERIMAGE |
|
|
417 | set_application_name ((char*)rs[Rs_name]); |
|
|
418 | set_output_threshold (OUTPUT_LEVEL_WARNING); |
419 | asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); |
419 | asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); |
420 | #endif |
420 | #endif |
421 | free (r_argv); |
421 | free (r_argv); |
422 | |
422 | |
423 | for (int i = NUM_RESOURCES; i--; ) |
423 | for (int i = NUM_RESOURCES; i--; ) |