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