From 71a3da1ef30c510ae61ed0c5650e6a4f482695ca Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 10 Oct 2011 16:00:34 +0100 Subject: [PATCH] =?UTF-8?q?t/175-startup-notification:=20don=E2=80=99t=20w?= =?UTF-8?q?ait=20for=20i3=20mapping=20the=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is on a different workspace and will therefore not get mapped. Syncing is enough. --- testcases/t/175-startup-notification.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testcases/t/175-startup-notification.t b/testcases/t/175-startup-notification.t index 56088719..58b3e0cd 100644 --- a/testcases/t/175-startup-notification.t +++ b/testcases/t/175-startup-notification.t @@ -99,7 +99,8 @@ is(@{get_ws_content($second_ws)}, 0, 'no containers on the second workspace yet' my $win = open_window($x, { dont_map => 1 }); mark_window($win->id); $win->map; -wait_for_map($x); +# We don’t use wait_for_map because the window will not get mapped -- it is on +# a different workspace. # We sync with i3 here to make sure $x->input_focus is updated. sync_with_i3($x); @@ -113,7 +114,9 @@ is(@{get_ws_content($first_ws)}, 1, 'one container on the first workspace'); my $leader = open_window($x, { dont_map => 1 }); mark_window($leader->id); -$win = open_window($x, { client_leader => $leader }); +$win = open_window($x, { dont_map => 1, client_leader => $leader }); +$win->map; +sync_with_i3($x); is(@{get_ws_content($second_ws)}, 0, 'still no containers on the second workspace'); is(@{get_ws_content($first_ws)}, 2, 'two containers on the first workspace');