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

Comparing rxvt-unicode/src/perl/option-popup (file contents):
Revision 1.6 by root, Sun Jan 8 22:58:13 2006 UTC vs.
Revision 1.7 by root, Mon Jan 9 00:34:36 2006 UTC

1#! perl 1#! perl
2 2
3sub on_start { 3sub on_start {
4 my ($self) = @_; 4 my ($self) = @_;
5 5
6 $self->grab_button (3, urxvt::ControlMask); 6 $self->grab_button (2, urxvt::ControlMask);
7} 7}
8 8
9sub on_button_press { 9sub on_button_press {
10 my ($self, $event) = @_; 10 my ($self, $event) = @_;
11 11
12 if ($event->{button} == 3 && $event->{state} & urxvt::ControlMask) { 12 if ($event->{button} == 2 && $event->{state} & urxvt::ControlMask) {
13 my $popup = $self->popup ($event) 13 my $popup = $self->popup ($event)
14 or return; 14 or return 1;
15 15
16 $popup->add_title ("Options"); 16 $popup->add_title ("Options");
17 $popup->add_separator; 17 $popup->add_separator;
18 18
19 my %unsafe = map +($_ => 1), 19 my %unsafe = map +($_ => 1),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines