summaryrefslogtreecommitdiffstats
path: root/x11-wm/metacity/files
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-09-22 01:44:30 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-09-22 01:44:30 +0800
commit29c4c8b298ddb5874fb00783b70dba816df0e794 (patch)
tree7b7720485a824b05b26ece6cdeb28f6e2a7e8297 /x11-wm/metacity/files
parentf89814028d18630178c1950b7476f9f7ffaee7b5 (diff)
downloadmarcuscom-ports-29c4c8b298ddb5874fb00783b70dba816df0e794.tar
marcuscom-ports-29c4c8b298ddb5874fb00783b70dba816df0e794.tar.gz
marcuscom-ports-29c4c8b298ddb5874fb00783b70dba816df0e794.tar.bz2
marcuscom-ports-29c4c8b298ddb5874fb00783b70dba816df0e794.tar.lz
marcuscom-ports-29c4c8b298ddb5874fb00783b70dba816df0e794.tar.xz
marcuscom-ports-29c4c8b298ddb5874fb00783b70dba816df0e794.tar.zst
marcuscom-ports-29c4c8b298ddb5874fb00783b70dba816df0e794.zip
Update to 2.30.2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14634 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-wm/metacity/files')
-rw-r--r--x11-wm/metacity/files/patch-bugzilla_588119139
-rw-r--r--x11-wm/metacity/files/patch-configure11
-rw-r--r--x11-wm/metacity/files/patch-src_core_delete.c10
-rw-r--r--x11-wm/metacity/files/patch-src_core_main.c14
4 files changed, 174 insertions, 0 deletions
diff --git a/x11-wm/metacity/files/patch-bugzilla_588119 b/x11-wm/metacity/files/patch-bugzilla_588119
new file mode 100644
index 000000000..823c111ab
--- /dev/null
+++ b/x11-wm/metacity/files/patch-bugzilla_588119
@@ -0,0 +1,139 @@
+From a3de65d5d1861f755ced7cad291fbbd4f1b8ef51 Mon Sep 17 00:00:00 2001
+From: Owen W. Taylor <otaylor@fishsoup.net>
+Date: Sat, 22 Aug 2009 15:00:57 -0400
+Subject: [PATCH] Should set RestartStyleHint to RestartIfRunning when replaced
+
+This reverts most of commit abbd057eb967e6ab462ffe305f41b2b04d417b25;
+
+ - It's fine to call meta_session_shutdown() after the display
+ is closed, since it's talking over the ICE connection
+ - We should not call warn_about_lame_clients_and_finish_interact()
+ unless we are interacting with the window manager in a session
+ save.
+
+However, the part of abbd057 that fixed accessing freed memory was
+fixing a real problem; this patches does the same thing in a simpler
+way by fixing an obvious type in meta_display_close() where it was
+NULL'ing out the local variable 'display' rather than the global
+variable 'the_display' and adding keeping the check in meta_finalize()
+that was added in abbd057.
+
+The order of calling meta_session_shutdown() and
+calling meta_display_close() is reverted back to the old order to
+make it clear that it's OK if the display way already closed previously.
+
+http://bugzilla.gnome.org/show_bug.cgi?id=588119
+---
+ src/core/display-private.h | 2 +-
+ src/core/display.c | 16 ++++------------
+ src/core/main.c | 5 ++---
+ src/core/session.c | 8 --------
+ 4 files changed, 7 insertions(+), 24 deletions(-)
+
+diff --git a/src/core/display-private.h b/src/core/display-private.h
+index 19287f3..9c8ebc6 100644
+--- src/core/display-private.h
++++ src/core/display-private.h
+@@ -329,7 +329,7 @@ MetaScreen* meta_display_screen_for_xwindow (MetaDisplay *display,
+ void meta_display_grab (MetaDisplay *display);
+ void meta_display_ungrab (MetaDisplay *display);
+
+-void meta_display_unmanage_screen (MetaDisplay **display,
++void meta_display_unmanage_screen (MetaDisplay *display,
+ MetaScreen *screen,
+ guint32 timestamp);
+
+diff --git a/src/core/display.c b/src/core/display.c
+index 55c374a..8e35a35 100644
+--- src/core/display.c
++++ src/core/display.c
+@@ -926,7 +926,7 @@ meta_display_close (MetaDisplay *display,
+ meta_compositor_destroy (display->compositor);
+
+ g_free (display);
+- display = NULL;
++ the_display = NULL;
+
+ meta_quit (META_EXIT_SUCCESS);
+ }
+@@ -4762,13 +4762,10 @@ process_selection_clear (MetaDisplay *display,
+ meta_verbose ("Got selection clear for screen %d on display %s\n",
+ screen->number, display->name);
+
+- meta_display_unmanage_screen (&display,
++ meta_display_unmanage_screen (display,
+ screen,
+ event->xselectionclear.time);
+
+- if (!display)
+- the_display = NULL;
+-
+ /* display and screen may both be invalid memory... */
+
+ return;
+@@ -4790,12 +4787,10 @@ process_selection_clear (MetaDisplay *display,
+ }
+
+ void
+-meta_display_unmanage_screen (MetaDisplay **displayp,
++meta_display_unmanage_screen (MetaDisplay *display,
+ MetaScreen *screen,
+ guint32 timestamp)
+ {
+- MetaDisplay *display = *displayp;
+-
+ meta_verbose ("Unmanaging screen %d on display %s\n",
+ screen->number, display->name);
+
+@@ -4805,10 +4800,7 @@ meta_display_unmanage_screen (MetaDisplay **displayp,
+ display->screens = g_slist_remove (display->screens, screen);
+
+ if (display->screens == NULL)
+- {
+- meta_display_close (display, timestamp);
+- *displayp = NULL;
+- }
++ meta_display_close (display, timestamp);
+ }
+
+ void
+diff --git a/src/core/main.c b/src/core/main.c
+index a36a396..44d317e 100644
+--- src/core/main.c
++++ src/core/main.c
+@@ -361,12 +361,11 @@ static void
+ meta_finalize (void)
+ {
+ MetaDisplay *display = meta_get_display();
+-
+- meta_session_shutdown ();
+-
+ if (display)
+ meta_display_close (display,
+ CurrentTime); /* I doubt correct timestamps matter here */
++
++ meta_session_shutdown ();
+ }
+
+ static void
+diff --git a/src/core/session.c b/src/core/session.c
+index 7e3b389..0d69350 100644
+--- src/core/session.c
++++ src/core/session.c
+@@ -376,14 +376,6 @@ meta_session_shutdown (void)
+ SmProp *props[1];
+ char hint = SmRestartIfRunning;
+
+- if (!meta_get_display ())
+- {
+- meta_verbose ("Cannot close session because there is no display");
+- return;
+- }
+-
+- warn_about_lame_clients_and_finish_interact (FALSE);
+-
+ if (session_connection == NULL)
+ return;
+
+--
+1.6.4
diff --git a/x11-wm/metacity/files/patch-configure b/x11-wm/metacity/files/patch-configure
new file mode 100644
index 000000000..223d0af9e
--- /dev/null
+++ b/x11-wm/metacity/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2010-04-01 13:44:38.000000000 +0200
++++ configure 2010-04-01 13:45:49.000000000 +0200
+@@ -24238,7 +24238,7 @@
+ "
+
+ METACITY_MINOR_VERSION=30
+-if test $(( $(echo $METACITY_MINOR_VERSION) %2)) == "1"; then
++if test $(( $(echo $METACITY_MINOR_VERSION) %2)) = "1"; then
+ stable_version=$(( ($METACITY_MINOR_VERSION / 2) * 2))
+ echo "This is the UNSTABLE branch of metacity"
+ echo -n "Use 2.$stable_version.x for stable "
diff --git a/x11-wm/metacity/files/patch-src_core_delete.c b/x11-wm/metacity/files/patch-src_core_delete.c
new file mode 100644
index 000000000..c72b0f60a
--- /dev/null
+++ b/x11-wm/metacity/files/patch-src_core_delete.c
@@ -0,0 +1,10 @@
+--- src/core/delete.c.orig 2010-01-30 18:56:27.000000000 -0500
++++ src/core/delete.c 2010-01-30 18:56:53.000000000 -0500
+@@ -32,6 +32,7 @@
+ #include "workspace.h"
+
+ #include <sys/types.h>
++#include <sys/wait.h>
+ #include <signal.h>
+ #include <unistd.h>
+ #include <errno.h>
diff --git a/x11-wm/metacity/files/patch-src_core_main.c b/x11-wm/metacity/files/patch-src_core_main.c
new file mode 100644
index 000000000..2d5171e5d
--- /dev/null
+++ b/x11-wm/metacity/files/patch-src_core_main.c
@@ -0,0 +1,14 @@
+--- src/core/main.c.orig 2010-01-21 11:09:25.000000000 -0500
++++ src/core/main.c 2010-01-30 18:53:17.000000000 -0500
+@@ -58,7 +58,11 @@
+
+ #include <stdlib.h>
+ #include <sys/types.h>
++#ifdef __linux__
+ #include <wait.h>
++#else
++#include <sys/wait.h>
++#endif
+ #include <stdio.h>
+ #include <string.h>
+ #include <signal.h>