1 | #! perl | 1 | #! perl |
---|---|---|---|
2 | 2 | ||
3 | sub on_configure_notify { | 3 | sub on_configure_notify { |
4 | my ($self, $event) = @_; | 4 | my ($self, $event) = @_; |
5 | |||
6 | my ($x, $y) = $self->XTranslateCoordinates ( | ||
7 | $self->vt, $self->DefaultRootWindow, | ||
8 | 0, 0 | ||
9 | ); | ||
5 | 10 | ||
6 | $self->cmd_parse ("\033]20;;=+$event->{x}+$event->{y}\007"); | 11 | $self->cmd_parse ("\033]20;;=+$x+$y\007"); |
7 | } | 12 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |