]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/113-urgent.t
remove the urgency indicator when a window is closed
[i3/i3] / testcases / t / 113-urgent.t
index ff44e0ea0bc263ed52d29b0a789212c97ae1809f..8c8b74aba4ee3cf0bafadd17717eaaa90dce29c2 100644 (file)
@@ -231,6 +231,25 @@ cmd "workspace $tmp";
 
 does_i3_live;
 
-exit_gracefully($pid);
+###############################################################################
+# Check if the urgency hint is still set when the urgent window is killed
+###############################################################################
 
+my $ws1 = fresh_workspace;
+my $ws2 = fresh_workspace;
+cmd "workspace $ws1";
+my $w1 = open_window;
+my $w2 = open_window;
+cmd "workspace $ws2";
+sync_with_i3;
+$w1->add_hint('urgency');
+sync_with_i3;
+cmd '[id="' . $w1->id . '"] kill';
+sync_with_i3;
+my $w = get_ws($ws1);
+is($w->{urgent}, 0, 'Urgent flag no longer set after killing the window ' .
+    'from another workspace');
+
+
+exit_gracefully($pid);
 done_testing;