… | |
… | |
1775 | } |
1775 | } |
1776 | #endif |
1776 | #endif |
1777 | } |
1777 | } |
1778 | } |
1778 | } |
1779 | |
1779 | |
1780 | #if TRANSPARENT |
1780 | void |
|
|
1781 | rxvt_term::update_fade_color (unsigned int idx) |
|
|
1782 | { |
|
|
1783 | #if OFF_FOCUS_FADING |
|
|
1784 | if (rs[Rs_fade]) |
|
|
1785 | { |
|
|
1786 | rgba c; |
|
|
1787 | pix_colors [Color_fade].get (c); |
|
|
1788 | pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c); |
|
|
1789 | } |
|
|
1790 | #endif |
|
|
1791 | } |
|
|
1792 | |
|
|
1793 | #if TRANSPARENT || ENABLE_PERL |
1781 | void |
1794 | void |
1782 | rxvt_term::rootwin_cb (XEvent &ev) |
1795 | rxvt_term::rootwin_cb (XEvent &ev) |
1783 | { |
1796 | { |
1784 | make_current (); |
1797 | make_current (); |
1785 | |
1798 | |
|
|
1799 | if (SHOULD_INVOKE (HOOK_ROOT_EVENT) |
|
|
1800 | && HOOK_INVOKE ((this, HOOK_ROOT_EVENT, DT_XEVENT, &ev, DT_END))) |
|
|
1801 | return; |
|
|
1802 | |
|
|
1803 | # if TRANSPARENT |
1786 | switch (ev.type) |
1804 | switch (ev.type) |
1787 | { |
1805 | { |
1788 | case PropertyNotify: |
1806 | case PropertyNotify: |
1789 | /* |
1807 | /* |
1790 | * if user used some Esetroot compatible prog to set the root bg, |
1808 | * if user used some Esetroot compatible prog to set the root bg, |
… | |
… | |
1798 | case ReparentNotify: |
1816 | case ReparentNotify: |
1799 | if (OPTION (Opt_transparent) && check_our_parents () && am_transparent) |
1817 | if (OPTION (Opt_transparent) && check_our_parents () && am_transparent) |
1800 | want_refresh = want_full_refresh = 1; |
1818 | want_refresh = want_full_refresh = 1; |
1801 | break; |
1819 | break; |
1802 | } |
1820 | } |
|
|
1821 | # endif |
1803 | } |
1822 | } |
1804 | #endif |
1823 | #endif |
1805 | |
1824 | |
1806 | void |
1825 | void |
1807 | rxvt_term::button_press (XButtonEvent &ev) |
1826 | rxvt_term::button_press (XButtonEvent &ev) |
… | |
… | |
3756 | int saveop = op; |
3775 | int saveop = op; |
3757 | |
3776 | |
3758 | dLocal (Display *, dpy); |
3777 | dLocal (Display *, dpy); |
3759 | |
3778 | |
3760 | assert (str != NULL); |
3779 | assert (str != NULL); |
|
|
3780 | |
|
|
3781 | if (HOOK_INVOKE ((this, HOOK_OSC_SEQ, DT_INT, op, DT_STR, str, DT_END))) |
|
|
3782 | return; |
|
|
3783 | |
3761 | switch (op) |
3784 | switch (op) |
3762 | { |
3785 | { |
3763 | case XTerm_name: |
3786 | case XTerm_name: |
3764 | set_title (str); |
3787 | set_title (str); |
3765 | /* FALLTHROUGH */ |
3788 | /* FALLTHROUGH */ |
… | |
… | |
3982 | break; |
4005 | break; |
3983 | #endif |
4006 | #endif |
3984 | |
4007 | |
3985 | #if ENABLE_PERL |
4008 | #if ENABLE_PERL |
3986 | case URxvt_perl: |
4009 | case URxvt_perl: |
3987 | if (HOOK_INVOKE ((this, HOOK_OSC_SEQ, DT_STR, str, DT_END))) |
4010 | if (HOOK_INVOKE ((this, HOOK_OSC_SEQ_PERL, DT_STR, str, DT_END))) |
3988 | ; // no responses yet |
4011 | ; // no responses yet |
3989 | break; |
4012 | break; |
3990 | #endif |
4013 | #endif |
3991 | } |
4014 | } |
3992 | } |
4015 | } |