Fix crash that occurs when stupid apps claim that a window is its own

2005-02-23  Elijah Newren  <newren@gmail.com>

	* src/window.c: (meta_window_new_with_attrs): Fix crash that
	occurs when stupid apps claim that a window is its own parent.
	#168207
This commit is contained in:
Elijah Newren 2005-02-23 17:42:51 +00:00 committed by Elijah Newren
parent 8ac94e45b5
commit ebae340a1e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-02-23 Elijah Newren <newren@gmail.com>
* src/window.c: (meta_window_new_with_attrs): Fix crash that
occurs when stupid apps claim that a window is its own parent.
#168207
2005-02-21 Elijah Newren <newren@gmail.com> 2005-02-21 Elijah Newren <newren@gmail.com>
* configure.in: post-release version bump to 2.9.34 * configure.in: post-release version bump to 2.9.34

View File

@ -648,7 +648,7 @@ meta_window_new_with_attrs (MetaDisplay *display,
parent = meta_display_lookup_x_window (window->display, parent = meta_display_lookup_x_window (window->display,
window->xtransient_for); window->xtransient_for);
if (parent) if (parent && parent->workspace)
{ {
meta_topic (META_DEBUG_PLACEMENT, meta_topic (META_DEBUG_PLACEMENT,
"Putting window %s on same workspace as parent %s\n", "Putting window %s on same workspace as parent %s\n",