aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2023-04-02 18:55:21 +0200
committerGitHub <noreply@github.com>2023-04-02 18:55:21 +0200
commit74785f479582c885b871b209b79c3a637021357e (patch)
tree78df4a63bb6a1c44e2218d85daf211d76f4056d9 /testcases
parentd7583fbc179b856d489d4b9fadabd440cea16a45 (diff)
downloadi3-74785f479582c885b871b209b79c3a637021357e.tar.gz
i3-74785f479582c885b871b209b79c3a637021357e.zip
Allow switching workspaces when in global fullscreen mode (#5398)
Fixes #2974
Diffstat (limited to 'testcases')
-rw-r--r--testcases/t/100-fullscreen.t12
1 files changed, 7 insertions, 5 deletions
diff --git a/testcases/t/100-fullscreen.t b/testcases/t/100-fullscreen.t
index d817bee0..a14cb8ba 100644
--- a/testcases/t/100-fullscreen.t
+++ b/testcases/t/100-fullscreen.t
@@ -185,7 +185,9 @@ cmd 'focus left';
is($x->input_focus, $window->id, 'fullscreen window still focused');
################################################################################
-# Verify that changing workspace while in global fullscreen does not work.
+# Verify that changing workspace while in global fullscreen disables fullscreen
+# first.
+# See #2974
################################################################################
$tmp = fresh_workspace;
@@ -197,11 +199,11 @@ is(focused_ws(), $tmp, 'workspace selected');
$other = get_unused_workspace;
cmd "workspace $other";
-is($x->input_focus, $window->id, 'window still focused');
-is(focused_ws(), $tmp, 'workspace still selected');
+isnt($x->input_focus, $window->id, 'window not focused anymore');
+is(focused_ws(), $other, 'workspace switched');
+is_num_fullscreen($other, 0, 'no fullscreen windows');
+is_num_fullscreen($tmp, 0, 'no fullscreen windows');
-# leave global fullscreen so that is does not interfere with the other tests
-$window->fullscreen(0);
sync_with_i3;
################################################################################