ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/automove-background
Revision: 1.9
Committed: Sat Mar 4 23:07:30 2006 UTC (18 years, 2 months ago) by root
Branch: MAIN
CVS Tags: rel-7_8, rel-8_0, rel-8_1, rel-8_2, rel-8_3, rel-8_4, rel-7_9
Changes since 1.8: +11 -4 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #! perl
2    
3 root 1.9 sub xy {
4     my ($self) = @_;
5    
6     $self->XTranslateCoordinates (
7     $self->vt, $self->DefaultRootWindow,
8     0, 0
9     )
10     }
11    
12 root 1.6 sub on_osc_seq {
13     my ($self, $op, $args) = @_;
14    
15     if ($op == 20) {
16     my ($pic, $commands) = split(/;/, $args, 2);
17     if ($pic !~ /^$/ && $commands !~ /[+\-]/) {
18     my ($x, $y) = $self->XTranslateCoordinates (
19     $self->vt, $self->DefaultRootWindow,
20     0, 0
21     );
22 root 1.9 my ($x, $y) = $self->xy;
23 root 1.6 $self->cmd_parse ("\033]20;$pic;=+$x+$y\007");
24     return 1;
25     }
26     }
27    
28     ()
29     }
30    
31 root 1.1 sub on_configure_notify {
32     my ($self, $event) = @_;
33 root 1.3
34 root 1.9 my ($x, $y) = $self->xy;
35 root 1.2
36     $self->cmd_parse ("\033]20;;=+$x+$y\007");
37 root 1.8
38     ()
39 root 1.1 }