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

Comparing rxvt-unicode/src/perl/urxvt-popup (file contents):
Revision 1.13 by root, Wed Jan 18 11:05:09 2006 UTC vs.
Revision 1.14 by root, Thu Jan 19 17:37:01 2006 UTC

51} 51}
52 52
53sub on_button_release { 53sub on_button_release {
54 my ($self, $event) = @_; 54 my ($self, $event) = @_;
55 55
56 if ($event->{button} == $self->{data}{event}{button}) {
57 $self->ungrab;
58 $self->destroy;
59 }
60
61 $self->{press}[$event->{button}] = 0; 56 $self->{press}[$event->{button}] = 0;
62 57
63 my ($row, $col) = ($event->{row}, $event->{col}); 58 my ($row, $col) = ($event->{row}, $event->{col});
64 if ($col >= 0 && $col < $self->ncol 59 if ($col >= 0 && $col < $self->ncol
65 && $row >= 0 && $row < @{ $self->{data}{item} }) { 60 && $row >= 0 && $row < @{ $self->{data}{item} }) {
66 my $item = $self->{data}{item}[$row]; 61 my $item = $self->{data}{item}[$row];
67 $item->{activate}->($event, $item); 62 $item->{activate}->($event, $item);
68 } 63 }
69 64
70 $self->refresh; 65 $self->refresh;
66
67 if ($event->{button} == $self->{data}{event}{button}) {
68 $self->ungrab;
69 $self->destroy;
70 }
71 71
72 1 72 1
73} 73}
74 74
75sub on_focus_out { 75sub on_focus_out {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines