diff options
Diffstat (limited to 'testcases/t/113-urgent.t')
-rw-r--r-- | testcases/t/113-urgent.t | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testcases/t/113-urgent.t b/testcases/t/113-urgent.t index f78226e3..f99b1942 100644 --- a/testcases/t/113-urgent.t +++ b/testcases/t/113-urgent.t @@ -50,6 +50,8 @@ my $config = <<EOT; # i3 config file (v4) font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +for_window [urgent=latest class=special] focus + force_display_urgency_hint 0ms EOT @@ -361,6 +363,19 @@ for ($type = 1; $type <= 2; $type++) { ok(!$win1_info->{urgent}, 'win1 window is not marked urgent after focusing'); ############################################################################## +# +############################################################################## + $tmp = fresh_workspace; + $win1 = open_window(wm_class => 'special'); + $win2 = open_window; + is($x->input_focus, $win2->id, 'second window has focus'); + + cmd 'nop hello'; + set_urgency($win1, 1, $type); + sync_with_i3; + is($x->input_focus, $win1->id, 'first window got focus'); + +############################################################################## exit_gracefully($pid); } |