aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2023-09-05 21:59:53 +0200
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2023-09-06 17:24:53 +0200
commit82b9821204901e6a3dd4cec5bcd8ef52e5dd12fe (patch)
treecef8025d488ba517c6d7757b7f680912e84a3bd2 /testcases
parentc1c405f4fc292321d8ef810b82d48abbbdb7b1a1 (diff)
downloadi3-82b9821204901e6a3dd4cec5bcd8ef52e5dd12fe.tar.gz
i3-82b9821204901e6a3dd4cec5bcd8ef52e5dd12fe.zip
Remanage window after urgency flag change
Fixes #5658
Diffstat (limited to 'testcases')
-rw-r--r--testcases/t/113-urgent.t15
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);
}