… | |
… | |
19 | |
19 | |
20 | my $self = $class->SUPER::new (%arg, |
20 | my $self = $class->SUPER::new (%arg, |
21 | setup_req => { |
21 | setup_req => { |
22 | extmap => 1, |
22 | extmap => 1, |
23 | excmd => 1, |
23 | excmd => 1, |
24 | #xwidget2 => 1,#d# |
24 | widget => 1, |
25 | %{$arg{setup_req} || {}}, |
25 | %{$arg{setup_req} || {}}, |
26 | msg => 0, |
|
|
27 | }, |
26 | }, |
28 | ); |
27 | ); |
29 | |
28 | |
30 | $self->{map_widget}->clr_commands; |
29 | $self->{map_widget}->clr_commands; |
31 | |
30 | |
… | |
… | |
614 | } |
613 | } |
615 | } |
614 | } |
616 | |
615 | |
617 | if ($delay) { |
616 | if ($delay) { |
618 | # delay the map drawing a tiny bit in the hope of getting the missing fetched |
617 | # delay the map drawing a tiny bit in the hope of getting the missing fetched |
619 | Event->timer (after => 0.03, cb => sub { |
618 | my $delay_draw; $delay_draw = EV::timer 0.03, 0, sub { |
620 | $_[0]->w->cancel; |
619 | undef $delay_draw; |
621 | $self->{map_widget}->update |
620 | $self->{map_widget}->update |
622 | if $self->{map_widget}; |
621 | if $self->{map_widget}; |
623 | }); |
622 | }; |
624 | } else { |
623 | } else { |
625 | $self->{map_widget}->update; |
624 | $self->{map_widget}->update; |
626 | } |
625 | } |
627 | } |
626 | } |
628 | |
627 | |
… | |
… | |
1304 | 0 |
1303 | 0 |
1305 | }); |
1304 | }); |
1306 | |
1305 | |
1307 | $self->update_server_info; |
1306 | $self->update_server_info; |
1308 | |
1307 | |
1309 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
|
|
1310 | $self->send_command ("output-count $::CFG->{output_count}"); |
|
|
1311 | $self->send_command ("output-rate $::CFG->{output_rate}") if $::CFG->{output_rate} > 0; |
1308 | $self->send_command ("output-rate $::CFG->{output_rate}") if $::CFG->{output_rate} > 0; |
1312 | $self->send_command ("pickup $::CFG->{pickup}"); |
1309 | $self->send_command ("pickup $::CFG->{pickup}"); |
1313 | } |
1310 | } |
1314 | |
1311 | |
1315 | sub lookat { |
1312 | sub lookat { |