From: root Date: Sat, 4 Mar 2006 23:07:30 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f06042ecde592f24287c835520658723b5540d60;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/perl/automove-background b/src/perl/automove-background index be835f46..ebbc6a34 100644 --- a/src/perl/automove-background +++ b/src/perl/automove-background @@ -1,5 +1,14 @@ #! perl +sub xy { + my ($self) = @_; + + $self->XTranslateCoordinates ( + $self->vt, $self->DefaultRootWindow, + 0, 0 + ) +} + sub on_osc_seq { my ($self, $op, $args) = @_; @@ -10,6 +19,7 @@ sub on_osc_seq { $self->vt, $self->DefaultRootWindow, 0, 0 ); + my ($x, $y) = $self->xy; $self->cmd_parse ("\033]20;$pic;=+$x+$y\007"); return 1; } @@ -21,10 +31,7 @@ sub on_osc_seq { sub on_configure_notify { my ($self, $event) = @_; - my ($x, $y) = $self->XTranslateCoordinates ( - $self->vt, $self->DefaultRootWindow, - 0, 0 - ); + my ($x, $y) = $self->xy; $self->cmd_parse ("\033]20;;=+$x+$y\007");