diff options
author | Elijah Newren <newren gmail com> | 2006-05-15 18:38:38 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-05-15 18:38:38 +0000 |
commit | 30ffd02c1dc8eada0d05b319e63a76f1f2458fc6 (patch) | |
tree | 4200f6e3885e283f9ddd925adeaa6a49a7bc6b49 | |
parent | 893b5a67e21910e4bf548667b022e255f560c167 (diff) | |
download | metacity-30ffd02c1dc8eada0d05b319e63a76f1f2458fc6.tar.gz |
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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/screen.c | 28 |
2 files changed, 20 insertions, 14 deletions
@@ -1,5 +1,11 @@ 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 Elijah Newren <newren gmail com> + Clear _NET_WM_VISIBLE_NAME (and the ICON_ equivalent) when no longer being used. Fixes #330671. diff --git a/src/screen.c b/src/screen.c index 003b04a1..33780392 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* |