Patch from jylefort@FreeBSD.org to prevent a crash when changing

2006-05-15  Elijah Newren  <newren gmail com>

	* src/screen.c (reload_xinerama_infos): Patch from
	jylefort@FreeBSD.org to prevent a crash when changing resolution.
	Fixes #340847.
This commit is contained in:
Elijah Newren 2006-05-15 18:37:36 +00:00 committed by Elijah Newren
parent 51ade19ae9
commit 3cb72d338c
2 changed files with 20 additions and 14 deletions

View File

@ -1,3 +1,9 @@
2006-05-15 Elijah Newren <newren gmail com>
* src/screen.c (reload_xinerama_infos): Patch from
jylefort@FreeBSD.org to prevent a crash when changing resolution.
Fixes #340847.
2006-05-15 Björn Lindqvist <bjourne@gmail.com> 2006-05-15 Björn Lindqvist <bjourne@gmail.com>
* places.[ch] (intcmp, window_get_edges, * places.[ch] (intcmp, window_get_edges,

View File

@ -187,6 +187,20 @@ reload_xinerama_infos (MetaScreen *screen)
{ {
MetaDisplay *display; MetaDisplay *display;
{
GList *tmp;
tmp = screen->workspaces;
while (tmp != NULL)
{
MetaWorkspace *space = tmp->data;
meta_workspace_invalidate_work_area (space);
tmp = tmp->next;
}
}
display = screen->display; display = screen->display;
if (screen->xinerama_infos) if (screen->xinerama_infos)
@ -348,20 +362,6 @@ reload_xinerama_infos (MetaScreen *screen)
g_assert (screen->n_xinerama_infos > 0); g_assert (screen->n_xinerama_infos > 0);
g_assert (screen->xinerama_infos != NULL); g_assert (screen->xinerama_infos != NULL);
{
GList *tmp;
tmp = screen->workspaces;
while (tmp != NULL)
{
MetaWorkspace *space = tmp->data;
meta_workspace_invalidate_work_area (space);
tmp = tmp->next;
}
}
} }
MetaScreen* MetaScreen*