my $ret = SDL::Events::poll_event($event);
-if ($event->type == SDL_ACTIVEEVENT)
+if ($event->type == SDL_ACTIVEEVENT && $event->active_gain == 1 && $event->active_state == SDL_APPINPUTFOCUS )
{
$got_event = 1;
last;
system( 'perl', 'Build.PL');
system( 'perl', 'Build');
system split ' ', 'prove -l -b -m --archive sdl.tar.gz';
-system split ' ', "perl tools/smolder_smoke_signal --server sdlperl.ath.cx:8080 --username $ARGV[0] --password $ARGV[1] --file sdl.tar.gz --project SDL --architecture $] --platform $^O $ARGV[3]";
+system split ' ', "perl tools/smolder_smoke_signal --server sdlperl.ath.cx --port 8080 --username $ARGV[0] --password $ARGV[1] --file sdl.tar.gz --project SDL --architecture $] --platform $^O $ARGV[3]";