ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.163 by ayin, Mon Dec 17 23:52:45 2007 UTC vs.
Revision 1.164 by root, Mon Dec 24 08:21:40 2007 UTC

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
1969sub DESTROY { 1976sub DESTROY {
1970 my ($self) = @_; 1977 my ($self) = @_;
1971 1978

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines