… | |
… | |
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 | |
7 | selection-popup (enabled by default) |
7 | selection-popup - selection management pop-up |
8 | |
8 | |
9 | =head1 DESCRIPTION |
9 | =head1 DESCRIPTION |
10 | |
10 | |
11 | Binds a popup menu to Ctrl-Button3 that lets you paste the X |
11 | Binds a popup menu to Ctrl-Button3 that lets you paste the X |
12 | selections and either modify or use the internal selection text in |
12 | selections and either modify or use the internal selection text in |
… | |
… | |
37 | sub msg { |
37 | sub 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 | |
48 | sub on_start { |
48 | sub on_start { |
49 | my ($self) = @_; |
49 | my ($self) = @_; |