mutter/src/x11
Olivier Fourdan fbd5a74a0b session: use initial workspace if no workspace set
Having “on_all_workspaces_requested” FALSE on a window does not imply a
workspace is set.

If the X11 window is placed on a secondary monitor while workspaces
applies on primary monitor only  (“workspaces-only-on-primary” set) then
“on_all_workspaces_requested” is FALSE while “on_all_workspaces“ is TRUE
and the associated workspace is NULL, leading to a crash when saving the
gnome-shell/mutter session.

So if no workspace is set, use the “initial_workspace” instead to avoid
a NULL pointer dereference.

https://bugzilla.gnome.org/show_bug.cgi?id=792818
2018-01-25 10:47:44 +01:00
..
atomnames.h xwayland: add _XWAYLAND_MAY_GRAB_KEYBOARD property 2017-12-18 13:15:13 +01:00
events.c xwayland: add _XWAYLAND_MAY_GRAB_KEYBOARD property 2017-12-18 13:15:13 +01:00
events.h Move all X11 event processing to a new file in x11/ 2014-06-11 16:28:45 -04:00
group-private.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
group-props.c Remove trailing whitespace 2014-05-02 09:34:48 -04:00
group-props.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
group.c group: Convert code to XCB to prevent errors 2015-08-05 13:39:23 -07:00
iconcache.c iconcache: Mark surfaces as dirty after changing data 2015-10-16 04:04:31 +02:00
iconcache.h x11: Change the iconcache / window icons to being cairo surfaces 2014-12-31 21:11:21 -08:00
mutter-Xatomtype.h mutter-Xatomtype: Fix the sizes of these structs 2015-06-23 11:46:29 -07:00
session.c session: use initial workspace if no workspace set 2018-01-25 10:47:44 +01:00
session.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
window-props.c window-props: Fix frame update on hide-titlebar-when-maximized changes 2017-04-27 23:04:08 +02:00
window-props.h Remove trailing whitespace 2014-05-02 09:34:48 -04:00
window-x11-private.h xwayland: Add MetaWindowXwayland 2017-12-18 13:15:09 +01:00
window-x11.c Don't attempt to get monitor geometry on non-existent monitors 2018-01-21 14:41:48 +01:00
window-x11.h xwayland: Add MetaWindowXwayland 2017-12-18 13:15:09 +01:00
xprops.c x11/xprops: Plug a few memory leaks 2017-02-21 19:51:46 +01:00
xprops.h xprops: More Xlib / long cleanliness with Motif WM hints 2015-06-24 14:34:48 -07:00