… | |
… | |
148 | } |
148 | } |
149 | #endif |
149 | #endif |
150 | |
150 | |
151 | rxvt_term::rxvt_term () |
151 | rxvt_term::rxvt_term () |
152 | : |
152 | : |
153 | #if TRANSPARENT || ENABLE_PERL |
153 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
154 | rootwin_ev (this, &rxvt_term::rootwin_cb), |
154 | rootwin_ev (this, &rxvt_term::rootwin_cb), |
155 | #endif |
155 | #endif |
156 | #if TRANSPARENT |
156 | #if ENABLE_TRANSPARENCY |
157 | check_our_parents_ev(this, &rxvt_term::check_our_parents_cb), |
157 | check_our_parents_ev(this, &rxvt_term::check_our_parents_cb), |
158 | #endif |
158 | #endif |
159 | #ifdef HAVE_SCROLLBARS |
159 | #ifdef HAVE_SCROLLBARS |
160 | scrollbar_ev (this, &rxvt_term::x_cb), |
160 | scrollbar_ev (this, &rxvt_term::x_cb), |
161 | #endif |
161 | #endif |
… | |
… | |
334 | im_ev.stop (display); |
334 | im_ev.stop (display); |
335 | #endif |
335 | #endif |
336 | #if HAVE_SCROLLBARS |
336 | #if HAVE_SCROLLBARS |
337 | scrollbar_ev.stop (display); |
337 | scrollbar_ev.stop (display); |
338 | #endif |
338 | #endif |
339 | #if TRANSPARENT || ENABLE_PERL |
339 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
340 | rootwin_ev.stop (display); |
340 | rootwin_ev.stop (display); |
341 | #endif |
341 | #endif |
342 | incr_ev.stop (); |
342 | incr_ev.stop (); |
343 | termwin_ev.stop (display); |
343 | termwin_ev.stop (display); |
344 | vt_ev.stop (display); |
344 | vt_ev.stop (display); |
… | |
… | |
504 | |
504 | |
505 | #ifdef HAVE_SCROLLBARS |
505 | #ifdef HAVE_SCROLLBARS |
506 | if (option (Opt_scrollBar)) |
506 | if (option (Opt_scrollBar)) |
507 | resize_scrollbar (); /* create and map scrollbar */ |
507 | resize_scrollbar (); /* create and map scrollbar */ |
508 | #endif |
508 | #endif |
509 | #ifdef TRANSPARENT |
509 | #ifdef ENABLE_TRANSPARENCY |
510 | if (option (Opt_transparent)) |
510 | if (option (Opt_transparent)) |
511 | { |
511 | { |
512 | XSelectInput (dpy, display->root, PropertyChangeMask); |
512 | XSelectInput (dpy, display->root, PropertyChangeMask); |
513 | check_our_parents (); |
513 | check_our_parents (); |
514 | rootwin_ev.start (display, display->root); |
514 | rootwin_ev.start (display, display->root); |
… | |
… | |
630 | return p; |
630 | return p; |
631 | } |
631 | } |
632 | |
632 | |
633 | /*----------------------------------------------------------------------*/ |
633 | /*----------------------------------------------------------------------*/ |
634 | /* |
634 | /* |
635 | * window size/position calculcations for XSizeHint and other storage. |
635 | * window size/position calculations for XSizeHint and other storage. |
636 | * if width/height are non-zero then override calculated width/height |
636 | * if width/height are non-zero then override calculated width/height |
637 | */ |
637 | */ |
638 | void |
638 | void |
639 | rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight) |
639 | rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight) |
640 | { |
640 | { |