1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Fix a crash that occurred when changing the screen resolution.

GNOME Bugzilla:	http://bugzilla.gnome.org/show_bug.cgi?id=340847
This commit is contained in:
Jean-Yves Lefort 2006-05-06 18:12:49 +00:00
parent aa6975c85b
commit 98e2e20855
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161509
2 changed files with 45 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= metacity
PORTVERSION= 2.14.3
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}

View File

@ -0,0 +1,44 @@
--- src/screen.c.orig Sat May 6 19:21:53 2006
+++ src/screen.c Sat May 6 19:22:13 2006
@@ -187,6 +187,20 @@
{
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 @@
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*