mutter/src/x11
Olivier Fourdan 97f142d1cc x11/window: Mark restored workspace as “set”
When a window's workspace is not NULL, on_all_workspace should be FALSE.
Similarly, when on_all_workspace is TRUE, the window workspace should be
NULL.

This is an assumption in multiple places in the code, including when
setting the workspace state, the window is either added or removed from
all workspaces only if the window's workspace is NULL.

This rule is initially enforced at creation in _meta_window_shared_new()
when a initial workspace is set. However, when the initial workspace is
set from the session info, the initial workspace is not marked as “set”
which leads to an assertion failure when unmanaging windows, because the
window is not removed from all the workspaces.

When applying the session info to a window, mark the workspace as “set”.

https://gitlab.gnome.org/GNOME/mutter/issues/4

Closes: #4
2018-01-30 10:08:58 +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 x11/window: Mark restored workspace as “set” 2018-01-30 10:08:58 +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