… | |
… | |
1285 | mouseWheelScrollPage name override_redirect pastableTabs path perl_eval |
1285 | mouseWheelScrollPage name override_redirect pastableTabs path perl_eval |
1286 | perl_ext_1 perl_ext_2 perl_lib pointerBlank pointerBlankDelay |
1286 | perl_ext_1 perl_ext_2 perl_lib pointerBlank pointerBlankDelay |
1287 | preeditType print_pipe pty_fd reverseVideo saveLines scrollBar |
1287 | preeditType print_pipe pty_fd reverseVideo saveLines scrollBar |
1288 | scrollBar_align scrollBar_floating scrollBar_right scrollBar_thickness |
1288 | scrollBar_align scrollBar_floating scrollBar_right scrollBar_thickness |
1289 | scrollTtyKeypress scrollTtyOutput scrollWithBuffer scrollstyle |
1289 | scrollTtyKeypress scrollTtyOutput scrollWithBuffer scrollstyle |
1290 | secondaryScreen secondaryScroll selectstyle shade term_name title |
1290 | secondaryScreen secondaryScroll shade term_name title |
1291 | transient_for transparent transparent_all tripleclickwords utmpInhibit |
1291 | transient_for transparent transparent_all tripleclickwords utmpInhibit |
1292 | visualBell |
1292 | visualBell |
1293 | |
1293 | |
1294 | =cut |
1294 | =cut |
1295 | |
1295 | |
… | |
… | |
1954 | my $env = $self->{term}->env; |
1954 | my $env = $self->{term}->env; |
1955 | # we can't hope to reproduce the locale algorithm, so nuke LC_ALL and set LC_CTYPE. |
1955 | # we can't hope to reproduce the locale algorithm, so nuke LC_ALL and set LC_CTYPE. |
1956 | delete $env->{LC_ALL}; |
1956 | delete $env->{LC_ALL}; |
1957 | $env->{LC_CTYPE} = $self->{term}->locale; |
1957 | $env->{LC_CTYPE} = $self->{term}->locale; |
1958 | |
1958 | |
1959 | urxvt::term->new ($env, "popup", |
1959 | my $term = urxvt::term->new ( |
|
|
1960 | $env, "popup", |
1960 | "--perl-lib" => "", "--perl-ext-common" => "", |
1961 | "--perl-lib" => "", "--perl-ext-common" => "", |
1961 | "-pty-fd" => -1, "-sl" => 0, |
1962 | "-pty-fd" => -1, "-sl" => 0, |
1962 | "-b" => 1, "-bd" => "grey80", "-bl", "-override-redirect", |
1963 | "-b" => 1, "-bd" => "grey80", "-bl", "-override-redirect", |
1963 | "--transient-for" => $self->{term}->parent, |
1964 | "--transient-for" => $self->{term}->parent, |
1964 | "-display" => $self->{term}->display_id, |
1965 | "-display" => $self->{term}->display_id, |
1965 | "-pe" => "urxvt-popup") |
1966 | "-pe" => "urxvt-popup", |
1966 | or die "unable to create popup window\n"; |
1967 | ) or die "unable to create popup window\n"; |
|
|
1968 | |
|
|
1969 | unless (delete $term->{urxvt_popup_init_done}) { |
|
|
1970 | $term->ungrab; |
|
|
1971 | $term->destroy; |
|
|
1972 | die "unable to initialise popup window\n"; |
|
|
1973 | } |
1967 | } |
1974 | } |
1968 | |
1975 | |
1969 | sub DESTROY { |
1976 | sub DESTROY { |
1970 | my ($self) = @_; |
1977 | my ($self) = @_; |
1971 | |
1978 | |