0f531d8c44
A window being unmanaged can cause the ShellApp to be removed from the ShellAppSystem, which if we are unlucky is the app's last reference, causing it to be disposed and freed. It would be bad if this happened before we finished handling the signal. Use g_signal_connect_object to ensure that a reference is held to the ShellApp for the duration of the signal handler, delaying its last-unref. In particular, when a signal handler calls _shell_app_remove_window(), there is a brief period for which ShellApp breaks the intended invariant (see !497) that app->running_state is non-NULL if and only if app->running_state->windows is also non-NULL (non-empty). Freeing the ShellApp at this point would cause a crash. This seems likely to be the root cause of <https://gitlab.gnome.org/GNOME/gnome-shell/issues/750>, <https://gitlab.gnome.org/GNOME/gnome-shell/issues/822> and <https://bugs.debian.org/926212>. Signed-off-by: Simon McVittie <smcv@debian.org> |
||
---|---|---|
.gitlab-ci | ||
.settings | ||
data | ||
docs/reference | ||
js | ||
man | ||
meson | ||
po | ||
src | ||
subprojects | ||
test | ||
tests | ||
tools | ||
.gitignore | ||
.gitlab-ci.yml | ||
.gitmodules | ||
cldr2json.py | ||
config.h.meson | ||
COPYING | ||
gnome-shell.doap | ||
HACKING.md | ||
meson_options.txt | ||
meson.build | ||
NEWS | ||
README.md | ||
README.mdwn |
GNOME Shell
GNOME Shell provides core user interface functions for the GNOME 3 desktop, like switching to windows and launching applications. GNOME Shell takes advantage of the capabilities of modern graphics hardware and introduces innovative user interface concepts to provide a visually attractive and easy to use experience.
For more information about GNOME Shell, including instructions on how to build GNOME Shell from source and how to get involved with the project, see the project wiki.
Bugs should be reported to the GNOME bug tracking system.
Contributing
To contribute, open merge requests at https://gitlab.gnome.org/GNOME/gnome-shell.
Commit messages should follow the GNOME commit message guidelines. We require an URL to either an issue or a merge request in each commit.
License
GNOME Shell is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for details.