ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/selection-popup
(Generate patch)

Comparing rxvt-unicode/src/perl/selection-popup (file contents):
Revision 1.30 by sf-exg, Fri May 23 20:51:15 2014 UTC vs.
Revision 1.32 by root, Wed Jun 23 12:45:30 2021 UTC

2 2
3#:META:RESOURCE:url-launcher:string:shell command to use 3#:META:RESOURCE:url-launcher:string:shell command to use
4 4
5=head1 NAME 5=head1 NAME
6 6
7selection-popup (enabled by default) 7selection-popup - selection management pop-up
8 8
9=head1 DESCRIPTION 9=head1 DESCRIPTION
10 10
11Binds a popup menu to Ctrl-Button3 that lets you paste the X 11Binds a popup menu to Ctrl-Button3 that lets you paste the X
12selections and either modify or use the internal selection text in 12selections and either modify or use the internal selection text in
37sub msg { 37sub msg {
38 my ($self, $msg) = @_; 38 my ($self, $msg) = @_;
39 39
40 my $overlay = $self->overlay (0, 0, $self->strwidth ($msg), 1); 40 my $overlay = $self->overlay (0, 0, $self->strwidth ($msg), 1);
41 $overlay->set (0, 0, $msg); 41 $overlay->set (0, 0, $msg);
42 my $iow; $iow = urxvt::timer->new->after (1)->cb (sub { 42 $self->{timer} = urxvt::timer->new->after (1)->cb (sub {
43 delete $self->{timer};
43 undef $overlay; 44 undef $overlay;
44 undef $iow;
45 }); 45 });
46} 46}
47 47
48sub on_start { 48sub on_start {
49 my ($self) = @_; 49 my ($self) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines