… | |
… | |
28 | #ifdef HAVE_BG_PIXMAP |
28 | #ifdef HAVE_BG_PIXMAP |
29 | |
29 | |
30 | void |
30 | void |
31 | rxvt_term::bg_destroy () |
31 | rxvt_term::bg_destroy () |
32 | { |
32 | { |
33 | # if ENABLE_TRANSPARENCY |
33 | # if BG_IMAGE_FROM_ROOT |
34 | delete root_img; |
34 | delete root_img; |
35 | root_img = 0; |
35 | root_img = 0; |
36 | # endif |
36 | # endif |
37 | |
37 | |
38 | # if BG_IMAGE_FROM_FILE |
38 | # if BG_IMAGE_FROM_FILE |
… | |
… | |
44 | } |
44 | } |
45 | |
45 | |
46 | bool |
46 | bool |
47 | rxvt_term::bg_window_size_sensitive () |
47 | rxvt_term::bg_window_size_sensitive () |
48 | { |
48 | { |
49 | # if ENABLE_TRANSPARENCY |
49 | # if BG_IMAGE_FROM_ROOT |
50 | if (bg_flags & BG_IS_TRANSPARENT) |
50 | if (bg_flags & BG_IS_TRANSPARENT) |
51 | return true; |
51 | return true; |
52 | # endif |
52 | # endif |
53 | |
53 | |
54 | # if BG_IMAGE_FROM_FILE |
54 | # if BG_IMAGE_FROM_FILE |
… | |
… | |
65 | } |
65 | } |
66 | |
66 | |
67 | bool |
67 | bool |
68 | rxvt_term::bg_window_position_sensitive () |
68 | rxvt_term::bg_window_position_sensitive () |
69 | { |
69 | { |
70 | # if ENABLE_TRANSPARENCY |
70 | # if BG_IMAGE_FROM_ROOT |
71 | if (bg_flags & BG_IS_TRANSPARENT) |
71 | if (bg_flags & BG_IS_TRANSPARENT) |
72 | return true; |
72 | return true; |
73 | # endif |
73 | # endif |
74 | |
74 | |
75 | # if BG_IMAGE_FROM_FILE |
75 | # if BG_IMAGE_FROM_FILE |
… | |
… | |
437 | } |
437 | } |
438 | |
438 | |
439 | return false; |
439 | return false; |
440 | } |
440 | } |
441 | |
441 | |
442 | # if ENABLE_TRANSPARENCY |
442 | # if BG_IMAGE_FROM_ROOT |
443 | /* |
443 | /* |
444 | * Builds a pixmap of the same size as the terminal window that contains |
444 | * Builds a pixmap of the same size as the terminal window that contains |
445 | * the tiled portion of the root pixmap that is supposed to be covered by |
445 | * the tiled portion of the root pixmap that is supposed to be covered by |
446 | * our window. |
446 | * our window. |
447 | */ |
447 | */ |
… | |
… | |
493 | rxvt_term::bg_set_root_pixmap () |
493 | rxvt_term::bg_set_root_pixmap () |
494 | { |
494 | { |
495 | delete root_img; |
495 | delete root_img; |
496 | root_img = rxvt_img::new_from_root (this); |
496 | root_img = rxvt_img::new_from_root (this); |
497 | } |
497 | } |
498 | # endif /* ENABLE_TRANSPARENCY */ |
498 | # endif /* BG_IMAGE_FROM_ROOT */ |
499 | |
499 | |
500 | void |
500 | void |
501 | rxvt_term::bg_render () |
501 | rxvt_term::bg_render () |
502 | { |
502 | { |
503 | if (bg_flags & BG_INHIBIT_RENDER) |
503 | if (bg_flags & BG_INHIBIT_RENDER) |
504 | return; |
504 | return; |
505 | |
505 | |
506 | bg_invalidate (); |
506 | bg_invalidate (); |
507 | # if ENABLE_TRANSPARENCY |
507 | # if BG_IMAGE_FROM_ROOT |
508 | if (bg_flags & BG_IS_TRANSPARENT) |
508 | if (bg_flags & BG_IS_TRANSPARENT) |
509 | { |
509 | { |
510 | /* we need to re-generate transparency pixmap in that case ! */ |
510 | /* we need to re-generate transparency pixmap in that case ! */ |
511 | if (render_root_image ()) |
511 | if (render_root_image ()) |
512 | bg_flags |= BG_IS_VALID; |
512 | bg_flags |= BG_IS_VALID; |
… | |
… | |
534 | } |
534 | } |
535 | |
535 | |
536 | void |
536 | void |
537 | rxvt_term::bg_init () |
537 | rxvt_term::bg_init () |
538 | { |
538 | { |
539 | #if ENABLE_TRANSPARENCY |
539 | #if BG_IMAGE_FROM_ROOT |
540 | if (option (Opt_transparent)) |
540 | if (option (Opt_transparent)) |
541 | { |
541 | { |
542 | bg_set_transparent (); |
542 | bg_set_transparent (); |
543 | |
543 | |
544 | if (rs [Rs_blurradius]) |
544 | if (rs [Rs_blurradius]) |