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.11 by root, Sun Jan 8 01:16:10 2006 UTC vs.
Revision 1.12 by root, Sun Jan 8 22:58:13 2006 UTC

61 $self->{press}[$event->{button}] = 0; 61 $self->{press}[$event->{button}] = 0;
62 62
63 my ($row, $col) = ($event->{row}, $event->{col}); 63 my ($row, $col) = ($event->{row}, $event->{col});
64 if ($col >= 0 && $col < $self->ncol 64 if ($col >= 0 && $col < $self->ncol
65 && $row >= 0 && $row < @{ $self->{data}{item} }) { 65 && $row >= 0 && $row < @{ $self->{data}{item} }) {
66 $self->{data}{item}[$row]{activate}->($event); 66 my $item = $self->{data}{item}[$row];
67 $item->{activate}->($event, $item);
67 } 68 }
68 69
69 $self->refresh; 70 $self->refresh;
70 71
71 1 72 1
97 my $pos = ""; 98 my $pos = "";
98 99
99 if ($data->{event}) { 100 if ($data->{event}) {
100 my $x = int List::Util::max 0, $data->{event}{x_root} - $width * $data->{term}->fwidth * 0.5; 101 my $x = int List::Util::max 0, $data->{event}{x_root} - $width * $data->{term}->fwidth * 0.5;
101 my $y = int List::Util::max 0, $data->{event}{y_root} - $data->{term}->fheight * 0.5; 102 my $y = int List::Util::max 0, $data->{event}{y_root} - $data->{term}->fheight * 0.5;
102
103 $pos = "+$x+$y"; 103 $pos = "+$x+$y";
104 } 104 }
105 105
106 $self->resource (geometry => "${width}x${height}$pos"); 106 $self->resource (geometry => "${width}x${height}$pos");
107 107
130 $self->grab ($self->{data}{event}{time}, 1) 130 $self->grab ($self->{data}{event}{time}, 1)
131 and $self->allow_events_async; 131 and $self->allow_events_async;
132} 132}
133 133
134 134
135
136
137
138

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines