Merge pull request #3814 from orestisfl/net_active_fullscreen

handlers.c: new focus should not end up behind fullscreen
This commit is contained in:
Ingo Bürk
2019-10-09 13:25:38 +02:00
committed by GitHub
5 changed files with 64 additions and 45 deletions

View File

@ -149,6 +149,22 @@ send_net_active_window($scratch->id, 'pager');
is($x->input_focus, $scratch->id, 'scratchpad window is shown');
################################################################################
# Send a _NET_ACTIVE_WINDOW ClientMessage for a window behind a fullscreen
# window
################################################################################
$ws1 = fresh_workspace;
$win1 = open_window;
$win2 = open_window;
cmd 'fullscreen enable';
is_num_fullscreen($ws1, 1, '1 fullscreen window in workspace');
send_net_active_window($win1->id);
is($x->input_focus, $win1->id, 'window behind fullscreen window is now focused');
is_num_fullscreen($ws1, 0, 'no fullscreen windows in workspace');
################################################################################
# Verify that the _NET_ACTIVE_WINDOW property is updated on the root window
# correctly.