diff options
Diffstat (limited to 'testcases/t/158-wm_take_focus.t')
-rw-r--r-- | testcases/t/158-wm_take_focus.t | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testcases/t/158-wm_take_focus.t b/testcases/t/158-wm_take_focus.t index e9a32cd0..c779365b 100644 --- a/testcases/t/158-wm_take_focus.t +++ b/testcases/t/158-wm_take_focus.t @@ -55,8 +55,7 @@ subtest 'Window without WM_TAKE_FOCUS', sub { my $window = open_window; ok(!recv_take_focus($window), 'did not receive ClientMessage'); - ok(is_net_wm_state_focused($window), '_NET_WM_STATE_FOCUSED set'); - + ok(net_wm_state_contains($window, '_NET_WM_STATE_FOCUSED'), '_NET_WM_STATE_FOCUSED set'); my ($nodes) = get_ws_content($ws); my $con = shift @$nodes; ok($con->{focused}, 'con is focused'); @@ -92,7 +91,7 @@ subtest 'Window with WM_TAKE_FOCUS and without InputHint', sub { $window->map; ok(!recv_take_focus($window), 'did not receive ClientMessage'); - ok(is_net_wm_state_focused($window), '_NET_WM_STATE_FOCUSED set'); + ok(net_wm_state_contains($window, '_NET_WM_STATE_FOCUSED'), '_NET_WM_STATE_FOCUSED set'); my ($nodes) = get_ws_content($ws); my $con = shift @$nodes; @@ -114,7 +113,7 @@ subtest 'Window with WM_TAKE_FOCUS and unspecified InputHint', sub { my $window = open_window({ protocols => [ $take_focus ] }); ok(!recv_take_focus($window), 'did not receive ClientMessage'); - ok(is_net_wm_state_focused($window), '_NET_WM_STATE_FOCUSED set'); + ok(net_wm_state_contains($window, '_NET_WM_STATE_FOCUSED'), '_NET_WM_STATE_FOCUSED set'); my ($nodes) = get_ws_content($ws); my $con = shift @$nodes; |