mutter/src/x11
Marco Trevisan (Treviño) 5ca0ef078d window-x11: Focus a window in the active workspace as take-focus fallback
Starting with commit 2db94e2e we try to focus a fallback default focus window
if no take-focus window candidate gets the input focus when we request it and
we limit the focus candidates to the current window's workspace.

However, if the window is unmanaging, the workspace might be unset, and we could
end up in deferencing a NULL pointer causing a crash.

So, in case the window's workspace is unset, just use the currently active
workspace for the display.

Closes https://gitlab.gnome.org/GNOME/mutter/issues/687

https://gitlab.gnome.org/GNOME/mutter/merge_requests/688
2019-07-18 10:09:45 +02:00
..
atomnames.h x11: Remove hide-titlebar-when-maximized support 2018-11-26 13:12:18 +00:00
events.c x11: Separate X11 focus handling into MetaX11Display method 2019-05-24 15:30:31 +00:00
events.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
group-private.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
group-props.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
group-props.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
group.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
iconcache.c Fix builds with G_DISABLE_ASSERT 2019-01-25 09:43:06 +01:00
iconcache.h Move X11 event, icon cache and property handling to MetaX11Display 2018-07-06 19:47:16 +02:00
meta-selection-source-x11-private.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-selection-source-x11.c x11: Add X11 MetaSelectionSource implementation 2019-05-02 16:22:08 +02:00
meta-startup-notification-x11.c core: Fix differing sequence timestamp precision expectations 2019-04-17 18:41:13 +02:00
meta-startup-notification-x11.h x11: Add method to launch applications, using SnLauncher 2019-01-18 17:03:57 +00:00
meta-x11-display-private.h core: Untangle input focus management 2019-05-24 15:30:31 +00:00
meta-x11-display.c compositor: Add MetaDnD private function to initialize XDND 2019-07-04 12:24:57 +00:00
meta-x11-errors.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-x11-selection-input-stream-private.h x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-input-stream.c x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-output-stream-private.h x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-output-stream.c x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-private.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-x11-selection.c x11: Do not warn on cancelled X11 selection sources 2019-05-15 13:14:12 +00:00
meta-x11-stack-private.h x11: Add MetaX11Stack object 2019-05-24 15:30:31 +00:00
meta-x11-stack.c x11: Add MetaX11Stack object 2019-05-24 15:30:31 +00:00
mutter-Xatomtype.h mutter-Xatomtype: Fix the sizes of these structs 2015-06-23 11:46:29 -07:00
session.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
session.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
window-props.c window-x11: Fix _XOPEN_SOURCE usage for gethostname on FreeBSD 2019-06-24 09:35:02 +00:00
window-props.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
window-x11-private.h window: Move can_ping to a function and implement in X11 2019-02-13 02:07:41 +00:00
window-x11.c window-x11: Focus a window in the active workspace as take-focus fallback 2019-07-18 10:09:45 +02:00
window-x11.h window: Move can_ping to a function and implement in X11 2019-02-13 02:07:41 +00:00
xprops.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
xprops.h Clean up include macros mess 2018-11-06 17:17:36 +01:00