*** empty log message ***
authorroot <root>
Sat, 4 Mar 2006 22:36:50 +0000 (22:36 +0000)
committerroot <root>
Sat, 4 Mar 2006 22:36:50 +0000 (22:36 +0000)
src/perl/automove-background

index 7f7bb26ce7a32c0474f851fb55eea3bc61939071..d6cc6d40c3a37b2b86bb7a6bd9a3151f3e8ca7a2 100644 (file)
@@ -1,5 +1,25 @@
 #! perl
 
+sub on_osc_seq {
+   my ($self, $op, $args) = @_;
+
+   if ($op == 20) {
+      my ($pic, $commands) = split(/;/, $args, 2);
+      warn "   pic=$pic commands=$commands";
+      if ($pic !~ /^$/ && $commands !~ /[+\-]/) {
+         my ($x, $y) = $self->XTranslateCoordinates (
+            $self->vt, $self->DefaultRootWindow,
+            0, 0
+         );
+         warn "      $x $y \\033]20;$pic;=+$x+$y\\007";
+         $self->cmd_parse ("\033]20;$pic;=+$x+$y\007");
+         return 1;
+      }
+   }
+
+   ()
+}
+
 sub on_configure_notify {
    my ($self, $event) = @_;