mirror of
https://github.com/i3/i3.git
synced 2025-10-29 03:13:23 +00:00
271-for_window_tilingfloating: Fix flaky test (#6509)
Floating assignments run based on the _I3_FLOATING_WINDOW property which means we have to go through X11 first.
This commit is contained in:
parent
45bfae0fc8
commit
1cc2548027
@ -56,6 +56,7 @@ is_deeply($nodes[0]->{nodes}[0]->{marks}, [ 'floating', 'floating_auto' ], "mark
|
||||
|
||||
cmd '[id=' . $A->{id} . '] floating enable';
|
||||
cmd '[id=' . $B->{id} . '] floating disable';
|
||||
sync_with_i3; # Assignments run based on the _I3_FLOATING_WINDOW property. No sync is race-y.
|
||||
|
||||
@nodes = @{get_ws($tmp)->{nodes}};
|
||||
cmp_ok(@nodes, '==', 1, 'one tiling container on this workspace');
|
||||
@ -75,6 +76,7 @@ is_deeply($nodes[0]->{nodes}[0]->{marks}, [ 'tiling_auto', 'floating', 'floating
|
||||
# Use 'mark' to clear old marks
|
||||
cmd '[id=' . $A->{id} . '] mark A, floating disable';
|
||||
cmd '[id=' . $B->{id} . '] mark B, floating enable';
|
||||
sync_with_i3;
|
||||
|
||||
@nodes = @{get_ws($tmp)->{nodes}};
|
||||
cmp_ok(@nodes, '==', 1, 'one tiling container on this workspace');
|
||||
@ -115,6 +117,7 @@ is_deeply($nodes[0]->{nodes}[0]->{marks}, [ 'floating' ], "mark set for 'floatin
|
||||
|
||||
cmd '[tiling_from="auto" con_mark="tiling"] mark --add tiling_auto';
|
||||
cmd '[floating_from="auto" con_mark="floating"] mark --add floating_auto';
|
||||
sync_with_i3;
|
||||
|
||||
@nodes = @{get_ws($tmp)->{nodes}};
|
||||
cmp_ok(@nodes, '==', 1, 'one tiling container on this workspace');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user