summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2006-05-15 18:37:36 +0000
committerElijah Newren <newren@src.gnome.org>2006-05-15 18:37:36 +0000
commit3cb72d338c1b0f376f2429d75fc886f841f1a833 (patch)
tree9178d51cd283fae820a03c829740db66f7feab81 /src
parent51ade19ae9837025c8b5da5410827bf23bb92851 (diff)
downloadmetacity-3cb72d338c1b0f376f2429d75fc886f841f1a833.tar.gz
metacity-3cb72d338c1b0f376f2429d75fc886f841f1a833.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/screen.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/screen.c b/src/screen.c
index bde2f7f..9f369a5 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -187,6 +187,20 @@ reload_xinerama_infos (MetaScreen *screen)
{
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;
if (screen->xinerama_infos)
@@ -348,20 +362,6 @@ reload_xinerama_infos (MetaScreen *screen)
g_assert (screen->n_xinerama_infos > 0);
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*