make in-place restarts use socket activation, too (for faster/less flaky tests)

This commit is contained in:
Michael Stapelberg
2012-01-21 23:03:09 +00:00
parent 3b7f4d428e
commit 318d4fdeef
10 changed files with 37 additions and 16 deletions

View File

@ -498,6 +498,9 @@ sub get_socket_path {
my $cookie = $x->get_property(0, $x->get_root_window(), $atom->id, GET_PROPERTY_TYPE_ANY, 0, 256);
my $reply = $x->get_property_reply($cookie->{sequence});
my $socketpath = $reply->{value};
if ($socketpath eq "/tmp/nested-$ENV{DISPLAY}") {
$socketpath .= '-activation';
}
$_cached_socket_path = $socketpath;
return $socketpath;
}