… | |
… | |
252 | delete drawable; |
252 | delete drawable; |
253 | // destroy all windows |
253 | // destroy all windows |
254 | if (parent[0]) |
254 | if (parent[0]) |
255 | XDestroyWindow (xdisp, parent[0]); |
255 | XDestroyWindow (xdisp, parent[0]); |
256 | |
256 | |
|
|
257 | for (int i = 0; i < TOTAL_COLORS; i++) |
|
|
258 | if (ISSET_PIXCOLOR (i)) |
|
|
259 | { |
|
|
260 | pix_colors_focused [i].free (this); |
|
|
261 | #if OFF_FOCUS_FADING |
|
|
262 | pix_colors_unfocused [i].free (this); |
|
|
263 | #endif |
|
|
264 | } |
|
|
265 | |
257 | clear (); |
266 | clear (); |
258 | } |
267 | } |
259 | |
268 | |
260 | // TODO: free pixcolours, colours should become part of rxvt_display |
|
|
261 | delete pix_colors_focused; |
269 | delete pix_colors_focused; |
262 | #if OFF_FOCUS_FADING |
270 | #if OFF_FOCUS_FADING |
263 | delete pix_colors_unfocused; |
271 | delete pix_colors_unfocused; |
264 | #endif |
272 | #endif |
265 | |
273 | |
… | |
… | |
1008 | |
1016 | |
1009 | rxvt_warn ("can't get colour '%s', continuing without.\n", name); |
1017 | rxvt_warn ("can't get colour '%s', continuing without.\n", name); |
1010 | return false; |
1018 | return false; |
1011 | } |
1019 | } |
1012 | |
1020 | |
|
|
1021 | void |
|
|
1022 | rxvt_term::alias_color (int dst, int src) |
|
|
1023 | { |
|
|
1024 | pix_colors[dst].set (this, rs[Rs_color + dst] = rs[Rs_color + src]); |
|
|
1025 | } |
|
|
1026 | |
1013 | /* -------------------------------------------------------------------- * |
1027 | /* -------------------------------------------------------------------- * |
1014 | * - WINDOW RESIZING - * |
1028 | * - WINDOW RESIZING - * |
1015 | * -------------------------------------------------------------------- */ |
1029 | * -------------------------------------------------------------------- */ |
1016 | void |
1030 | void |
1017 | rxvt_term::resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent) |
1031 | rxvt_term::resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent) |
… | |
… | |
1139 | #ifdef USE_XIM |
1153 | #ifdef USE_XIM |
1140 | |
1154 | |
1141 | void |
1155 | void |
1142 | rxvt_term::im_set_color (unsigned long &fg, unsigned long &bg) |
1156 | rxvt_term::im_set_color (unsigned long &fg, unsigned long &bg) |
1143 | { |
1157 | { |
1144 | fg = pix_colors[Color_fg]; |
1158 | fg = pix_colors [Color_fg]; |
1145 | bg = pix_colors[Color_bg]; |
1159 | bg = pix_colors [Color_bg]; |
1146 | } |
1160 | } |
1147 | |
1161 | |
1148 | void |
1162 | void |
1149 | rxvt_term::im_set_size (XRectangle &size) |
1163 | rxvt_term::im_set_size (XRectangle &size) |
1150 | { |
1164 | { |