… | |
… | |
537 | } |
537 | } |
538 | |
538 | |
539 | void |
539 | void |
540 | rxvt_term::bg_init () |
540 | rxvt_term::bg_init () |
541 | { |
541 | { |
|
|
542 | #if ENABLE_TRANSPARENCY |
|
|
543 | if (option (Opt_transparent)) |
|
|
544 | { |
|
|
545 | bg_set_transparent (); |
|
|
546 | |
|
|
547 | if (rs [Rs_blurradius]) |
|
|
548 | root_effects.set_blur (rs [Rs_blurradius]); |
|
|
549 | |
|
|
550 | if (ISSET_PIXCOLOR (Color_tint)) |
|
|
551 | root_effects.set_tint (pix_colors_focused [Color_tint]); |
|
|
552 | |
|
|
553 | if (rs [Rs_shade]) |
|
|
554 | root_effects.set_shade (rs [Rs_shade]); |
|
|
555 | |
|
|
556 | bg_set_root_pixmap (); |
|
|
557 | XSelectInput (dpy, display->root, PropertyChangeMask); |
|
|
558 | rootwin_ev.start (display, display->root); |
|
|
559 | } |
|
|
560 | #endif |
|
|
561 | |
542 | #if BG_IMAGE_FROM_FILE |
562 | #if BG_IMAGE_FROM_FILE |
543 | if (rs[Rs_backgroundPixmap]) |
563 | if (rs[Rs_backgroundPixmap]) |
544 | { |
564 | { |
545 | fimage.set_file_geometry (this, rs[Rs_backgroundPixmap]); |
565 | fimage.set_file_geometry (this, rs[Rs_backgroundPixmap]); |
546 | if (!bg_window_position_sensitive ()) |
566 | if (!bg_window_position_sensitive ()) |