gri3-wm/testcases/t
Ingo Bürk 5dbfb05c85 Use the EWMH support window rather than the root window as an input focus fallback.
If no other window is available on the active workspace, we now select the EWMH support window (used to indicate that an EWMH-compliant window manager is preent) as the focus window rather than the root window. The NET_WM_ACTIVE window will still be set to XCB_WINDOW_NONE to pretend that no window is actually focused.
This fixes the issue that when using the root window, a fallback mechanism in X11 takes effect which routes keyboard input to the window under the cursor, independent of whether that window has the input focus. Using the EWMH window instead, we can avoid this behavior. We cannot simply set it to XCB_WINDOW_NONE as this would discard all keyboard events, breaking keybindings.

fixes #1378
2015-09-13 20:29:02 +02:00
..
000-load-deps.t tests: 000-load-deps: bail out when dependencies are not found, test more of them 2012-11-13 21:03:44 +01:00
001-tile.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
002-i3-sync.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
003-ipc.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
004-unmanaged.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
005-floating.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
100-fullscreen.t Extend the fullscreen command 2014-12-10 20:42:52 +01:00
101-focus.t Let "focus" report success depending on whether a window was matched. 2015-09-11 08:26:33 +02:00
102-dock.t Handle strut partial changes for dock clients 2015-03-25 19:45:42 -04:00
103-move.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
104-focus-stack.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
105-stacking.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
111-goto.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
112-floating-resize.t Testcases: Use Xephyr instead of XDummy 2014-10-02 23:05:00 +02:00
113-urgent.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
114-client-leader.t t/114-client-leader: fix race by waiting until the window is mapped 2014-10-02 23:07:50 +02:00
115-ipc-workspaces.t Include workspace con in workspace event 2014-12-22 09:47:31 +01:00
116-nestedcons.t add deco_rect property to con in ipc response 2014-11-29 18:19:39 +01:00
117-workspace.t GET_TREE: serialize container type into a string 2013-12-22 21:52:49 +01:00
118-openkill.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
119-match.t tests: move set_wm_class to X11::XCB::Window 2013-09-24 21:56:52 +02:00
120-multiple-cmds.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
121-next-prev.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
122-split.t don’t set names corresponding to debug colors, remove “sleep 1”. 2014-07-15 10:36:31 +02:00
124-move.t Make absolute floating move work with criteria 2014-07-02 19:07:08 +02:00
126-regress-close.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
127-regress-floating-parent.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
128-open-order.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
129-focus-after-close.t previous commit: extend test and code to also work with floating windows 2013-10-13 17:59:29 +02:00
130-close-empty-split.t t/130-close-empty-split: clean up old workspace 2014-02-13 21:05:42 +01:00
131-stacking-order.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
132-move-workspace.t tests: sync_with_i3 before warping pointer 2014-02-25 20:44:17 +01:00
133-size-hints.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
134-invalid-command.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
135-floating-focus.t Skip floating cons in focus (child|parent) and stop them from being split 2012-10-16 20:01:36 +02:00
136-floating-ws-empty.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
137-floating-unmap.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
138-floating-attach.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
139-ws-numbers.t IPC: set ws reply "num" member to -1 when named 2014-09-29 09:33:02 +02:00
140-focus-lost.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
141-resize.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
142-regress-move-floating.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
143-regress-floating-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
144-regress-floating-resize.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
145-flattening.t Bugfix: don’t flatten tabbed/stacked containers 2013-09-01 13:35:04 +02:00
146-floating-reinsert.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
147-regress-floatingmove.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
148-regress-floatingmovews.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
150-regress-dock-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
151-regress-float-size.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
152-regress-level-up.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
153-floating-originalsize.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
154-regress-multiple-dock.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
155-floating-split-size.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
156-fullscreen-focus.t tests: sync_with_i3 before warping pointer 2014-02-25 20:44:17 +01:00
158-wm_take_focus.t Ignore InputHint when not in WM_HINTS 2015-04-25 22:43:46 -04:00
159-socketpaths.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
161-regress-borders-restart.t Implement variable border widths for pixel/normal 2012-09-24 22:20:29 +02:00
162-regress-dock-urgent.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
163-wm-state.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
164-kill-win-vs-client.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
165-for_window.t Implement new criterion 'workspace'. 2015-06-30 20:53:52 +02:00
166-assign.t tests: move set_wm_class to X11::XCB::Window 2013-09-24 21:56:52 +02:00
167-workspace_layout.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
168-regress-fullscreen-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
169-border-toggle.t Fix 'border toggle' (it "skipped" 1px border) (Thanks joepd) 2012-09-28 19:29:14 +02:00
170-force_focus_wrapping.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
171-config-migrate.t Remove dead documentation for non-existing feature "stack-limit". 2015-06-09 23:13:15 +02:00
172-start-on-named-ws.t Bugfix: use the command parser to properly extract workspace names 2014-10-01 22:50:48 +02:00
173-get-marks.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
173-regress-focus-assign.t tests: move set_wm_class to X11::XCB::Window 2013-09-24 21:56:52 +02:00
174-border-config.t Explicitly set current border width when BS_PIXEL 2014-06-28 13:00:59 +02:00
174-regress-focus-toggle.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
175-startup-notification.t Testcase for #1607. 2015-03-30 08:28:36 +02:00
176-workspace-baf.t Merge branch 'master' into next 2012-11-10 09:01:24 +01:00
177-bar-config.t Configurable tray padding. 2015-06-28 00:14:37 +02:00
178-regress-workspace-open.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
179-regress-multiple-ws.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
180-fd-leaks.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
181-regress-float-border.t Bugfix: don’t overwrite the original size of floating windows when changing border style 2014-06-13 22:19:23 +02:00
182-regress-focus-dock.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
183-config-variables.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
184-regress-float-split-resize.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
185-scratchpad.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
186-regress-assign-focus-parent.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
187-commands-parser.t Added command directive 'title_format'. 2015-06-29 09:13:31 +02:00
188-regress-focus-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
189-floating-constraints.t Support "resize set W H" 2015-09-11 23:12:07 +02:00
190-scratchpad-diff-ws.t tests: move set_wm_class to X11::XCB::Window 2013-09-24 21:56:52 +02:00
191-resize-levels.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
192-layout.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
193-ipc-version.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
194-regress-floating-size.t Bugfix: fix floating window size with hide_edge_borders (+test) 2013-04-02 23:59:26 +02:00
195-net-active-window.t Set EWMH active window to None when none has focus 2014-06-01 11:45:59 +02:00
196-randr-output-names.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
197-regression-move-vanish.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
198-regression-scratchpad-crash.t tests: add missing boilerplate 2012-09-22 12:56:01 +02:00
199-ipc-mode-event.t tests: add testcase for the 'mode' IPC event 2012-09-22 13:20:53 +02:00
200-urgency-timer.t relax timings of t/200-urgency-timer.t to reduce flakiness 2015-03-16 22:37:45 +01:00
201-config-parser.t Configurable tray padding. 2015-06-28 00:14:37 +02:00
202-scratchpad-criteria.t bugfix: Resize and center a scratchpad even when a criteria is used. 2013-07-11 21:18:21 +02:00
203-regress-assign-and-move.t Bugfix: fix crash when using multiple for_window statements that move windows (Thanks Antonio) 2014-06-12 09:32:55 +02:00
204-regress-scratchpad-move.t tests: move set_wm_class to X11::XCB::Window 2013-09-24 21:56:52 +02:00
205-ipc-windows.t Send IPC window events for focus and title changes 2014-02-26 22:24:19 +01:00
206-fullscreen-scratchpad.t Fix problem when moving fullscreen window to scratchpad 2013-05-25 22:59:27 +02:00
207-shmlog.t add a testcase for the shmlog command 2013-06-23 22:14:59 +02:00
208-regress-floating-criteria.t tests: move set_wm_class to X11::XCB::Window 2013-09-24 21:56:52 +02:00
209-ewmh-net-workarea.t actively delete _NET_WORKAREA on startup 2013-07-13 12:24:15 +02:00
210-mark-unmark.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
211-regress-urgency-assign.t tests: move set_wm_class to X11::XCB::Window 2013-09-24 21:56:52 +02:00
212-assign-urgency.t Assigned windows open urgent when not visible 2013-10-19 10:07:24 +02:00
213-layout-restore-simple.t allow parsing multiple nodes from a json layout 2013-12-22 21:52:49 +01:00
213-move-branch-position.t Movement into a branch considers movement direction 2014-01-06 22:26:23 +01:00
214-layout-restore-criteria.t fix test after renaming role to window_role 2013-12-22 21:52:49 +01:00
215-layout-restore-crash.t t/215-layout-restore-crash: fix test description 2014-01-04 21:57:35 +01:00
216-layout-restore-split-swallows.t add testcase for #1149 2014-01-05 20:37:42 +01:00
217-NET_CURRENT_DESKTOP.t Handle EWMH requests to change current desktop 2014-07-10 22:39:42 +02:00
218-regress-floating-split.t Bugfix: `tree_split` should not split floating cons 2014-02-08 20:59:23 +01:00
219-ipc-window-focus.t Send IPC window events for focus and title changes 2014-02-26 22:24:19 +01:00
220-ipc-window-title.t Send IPC window events for focus and title changes 2014-02-26 22:24:19 +01:00
221-floating-type-hints.t Add test for floating types 2014-03-08 21:00:50 +01:00
222-regress-dock-resize.t Test 222: call exit_gracefully 2014-03-21 19:21:19 +01:00
223-net-client-list.t Dont include dock clients in ewmh lists 2014-05-03 15:08:31 +02:00
224-regress-resize-branch.t Bugfix: resize window check should check for null 2014-04-26 12:10:05 +02:00
225-ipc-window-fullscreen.t Implement the window::fullscreen_mode event 2014-04-30 09:35:31 +02:00
226-internal-workspaces.t add a testcase for the previous commit (internal workspaces) 2014-05-03 15:00:49 +02:00
227-ipc-workspace-empty.t Include workspace con in workspace event 2014-12-22 09:47:31 +01:00
228-border-widths.t Always explicitly set border widths on manage 2014-07-11 00:33:20 +02:00
229-cleanup-tmpdir.t Bugfix: create the directory for storing the restart state (Thanks hjem) 2014-06-27 09:04:51 +02:00
230-floating-fullscreen-restart.t Bugfix: don’t overwrite the window’s geometry after restarting 2014-06-13 22:29:47 +02:00
231-ipc-floating-event.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
231-ipc-window-close.t Implement the window::close event 2014-06-19 12:59:25 +02:00
231-ipc-window-move.t Implement the window::move event 2014-06-19 13:00:17 +02:00
232-cmd-move-criteria.t Small cleanups: 2015-04-20 19:27:43 +02:00
232-ipc-window-urgent.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
233-regress-manage-focus-unmapped.t Bugfix: don't focus unmapped container on manage 2014-06-24 09:01:04 +02:00
234-ewmh-desktop-names.t t/*ewmh*: fix flakiness by syncing 2014-08-08 12:23:47 +02:00
234-layout-restore-output.t Merge branch 'master' into next 2015-01-31 22:42:54 +01:00
234-regress-default-floating-border.t bugfix: default floating border regression 2014-07-10 22:32:27 +02:00
235-check-config-no-x.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
235-wm-class-change-handler.t Testcase for non-null-terminated WM_CLASS. 2015-03-30 08:56:46 +02:00
236-floating-focus-raise.t Raise floating windows on `focus [direction]` 2014-08-08 12:19:35 +02:00
237-regress-assign-focus.t Bugfix: don’t set focus in con_set_layout() on invisible workspaces 2014-08-08 20:15:59 +02:00
238-ipc-binding-event.t check for AnyEvent::I3 ≥ 0.16 in the binding event test 2014-10-03 09:40:22 +02:00
238-regress-reload-bindsym.t bugfix: copy binding before run 2014-11-16 23:36:27 +01:00
239-net-close-window-request.t Handle _NET_CLOSE_WINDOW client message requests 2014-11-17 09:08:42 +01:00
240-focus-on-window-activation.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
240-tabbed-floating-disable-crash.t Fix percents when attaching a window to a ws creates a new split con 2015-03-27 22:20:28 -04:00
241-consistent-center.t Handle floating centering in one function and test for consistency 2015-03-30 16:03:35 -04:00
242-no-focus.t Silence "masks earlier declaration in same scope" warnings when executing tests. 2015-06-12 18:19:43 +02:00
243-move-to-mark.t Added test case for transfer of urgency flag when moving a window to a mark. 2015-04-19 20:57:49 +02:00
243-net-wm-state-hidden.t Added testcases for setting _NET_WM_STATE_HIDDEN on unfocused containers in tabbed/stacked containers. 2015-04-21 09:14:22 +02:00
244-new-workspace-floating-enable-center.t Initialize workspace rect to the output's upon creation 2015-04-28 15:09:58 -04:00
245-move-position-mouse.t Added testcases for 'move position mouse' 2015-05-14 13:04:58 -04:00
246-window-decoration-focus.t Added a testcases for #1056 to test whether hovering over a window decoration causes the corresponding window to be 2015-05-29 23:49:22 +02:00
247-config-line-continuation.t Support config file line continuation 2015-07-26 07:54:06 +08:00
248-regress-urgency-clear.t Properly clear the urgency hint when set by i3. 2015-08-02 20:50:14 +02:00
249-layout-restore-floating.t append_layout: load floating containers correctly 2015-08-05 22:40:58 +02:00
250-layout-restore-multiple-criteria.t layout restore: remove remaining criteria when swallowing window 2015-08-06 21:35:34 +02:00
251-command-criteria-focused.t Added tests for special value __focused__. 2015-08-29 00:43:55 +02:00
251-ewmh-visible-name.t Support _NET_WM_VISIBLE_NAME. As per specification this is necessary since we can display custom titles with title_format. 2015-08-30 22:42:14 +02:00
252-floating-size.t Support "resize set W H" 2015-09-11 23:12:07 +02:00
500-multi-monitor.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
501-scratchpad.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
502-focus-output.t tests: sync_with_i3 before warping pointer 2014-02-25 20:44:17 +01:00
503-workspace.t tests: sync_with_i3 before warping pointer 2014-02-25 20:44:17 +01:00
504-move-workspace-to-output.t GET_TREE: serialize container type into a string 2013-12-22 21:52:49 +01:00
505-scratchpad-resolution.t tests: sync_with_i3 before warping pointer 2014-02-25 20:44:17 +01:00
506-focus-right.t tests: sync_with_i3 before warping pointer 2014-02-25 20:44:17 +01:00
507-workspace-move-crash.t Bugfix: with one ws per output, don’t crash on cross-output moves (Thanks moju) 2012-09-28 23:04:37 +02:00
509-workspace_layout.t set workspace_layout in create_workspace_on_output 2012-10-03 15:08:21 +02:00
510-focus-across-outputs.t tests: sync_with_i3 before warping pointer 2014-02-25 20:44:17 +01:00
511-scratchpad-configure-request.t Bugfix: Ignore ConfigureRequests for scratchpad windows (Thanks MeanEYE) 2012-12-22 14:08:11 +01:00
512-move-wraps.t Bugfix: Do not move focus if a container is moved across outputs 2013-02-10 17:38:17 +01:00
513-move-workspace.t GET_TREE: serialize container type into a string 2013-12-22 21:52:49 +01:00
514-ipc-workspace-multi-monitor.t Refactor and improve test 514 2013-12-04 19:50:35 +01:00
515-create-workspace.t Respect workspace numbers when looking for a free workspace name 2013-08-18 17:47:53 +02:00
516-move.t t/516-move: use window id, fix typo 2013-11-19 20:28:32 +01:00
517-regress-move-direction-ipc.t Fix test 517 2014-05-20 19:59:49 +02:00
518-interpret-workspace-numbers.t Feature: Workspace assignment by number 2014-05-20 20:15:55 +02:00
519-mouse-warping.t Add configuration option for disabling mouse warping 2014-05-31 14:55:29 +02:00
520-regress-focus-direction-floating.t Cross-output focus focus floating exception 2014-06-24 09:05:39 +02:00
521-ewmh-desktop-viewport.t t/*ewmh*: fix flakiness by syncing 2014-08-08 12:23:47 +02:00
522-rename-assigned-workspace.t Added tests for #1473 2015-03-04 10:54:58 +01:00
523-move-position-center.t Add a test case for #1211 2015-03-27 14:29:53 -04:00
524-move.t Allow single-child non-default layout cons to be moved between outputs 2015-03-31 13:58:29 -04:00
525-i3bar-mouse-bindings.t Added testcase for #1695. 2015-06-18 19:28:24 +02:00
526-reconfigure-dock.t Support moving dock clients to another output. 2015-09-05 21:30:55 +02:00
527-focus-fallback.t Use the EWMH support window rather than the root window as an input focus fallback. 2015-09-13 20:29:02 +02:00