* metacity.spec: Remove obsolete patch, 08-constrain-window.
authordc144907
Wed, 04 Jan 2006 16:26:01 +0000
changeset 6490 8caaa83a7fe5
parent 6489 cc4828fc40d5
child 6491 0cebbbec906e
* metacity.spec: Remove obsolete patch, 08-constrain-window. * patches/metacity-08-constrain-window.diff: Removed, obsolete.
ChangeLog
metacity.spec
patches/metacity-08-constrain-window.diff
--- a/ChangeLog	Wed Jan 04 16:13:22 2006 +0000
+++ b/ChangeLog	Wed Jan 04 16:26:01 2006 +0000
@@ -6,7 +6,8 @@
 	* patches/gnome-desktop-01-jds-about-branding.diff patches,
 	patches/gnome-panel-03-egg-recent-poll.diff,
 	gnome-panel-05-fish-applet.diff: Rework for new tarball.
-
+	* metacity.spec: Remove obsolete patch, 08-constrain-window.
+	* patches/metacity-08-constrain-window.diff: Removed, obsolete.
 
 2006-01-04  Halton Huo <[email protected]>
 
--- a/metacity.spec	Wed Jan 04 16:13:22 2006 +0000
+++ b/metacity.spec	Wed Jan 04 16:26:01 2006 +0000
@@ -25,7 +25,6 @@
 Patch5:       metacity-05-raise-on-frame-click.diff
 Patch6:       metacity-06-logout-shortcut.diff
 Patch7:       metacity-07-window-title.diff
-Patch8:       metacity-08-constrain-window.diff
 URL:          http://www.gnome.org
 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 Docdir:       %{_defaultdocdir}/doc
@@ -56,7 +55,6 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
-%patch8 -p1
 
 
 %build
@@ -128,6 +126,9 @@
 %{_mandir}/man1/*
 
 %changelog
+* Wed Jan 04 2006 - [email protected]
+- Remove obsolete patch, 08-constrain-window.
+
 * Tue Dec 20 2005 - [email protected]
 - Bump to 2.13.5
 
--- a/patches/metacity-08-constrain-window.diff	Wed Jan 04 16:13:22 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
---- metacity/src/constraints.c	Tue Jan 18 01:55:09 2005
-+++ metacity-new/src/constraints.c	Wed May 11 09:04:30 2005
-@@ -402,9 +402,13 @@ get_outermost_onscreen_positions (MetaWi
-           
-           tmp = tmp->next;
-         }
--      
--      *leftmost_x_p = *leftmost_x_p - current.width + 
--        MIN (TITLEBAR_LENGTH_ONSCREEN, current.width);
-+     
-+      if (window->placed || 
-+          (!window->placed && !window->calc_placement))
-+        { 
-+          *leftmost_x_p = *leftmost_x_p - current.width + 
-+            MIN (TITLEBAR_LENGTH_ONSCREEN, current.width);
-+        }
-     }
-   
-   tmp = workspaces;
-@@ -434,8 +438,12 @@ get_outermost_onscreen_positions (MetaWi
-           tmp = tmp->next;
-         }
-       
--      *rightmost_x_p = *rightmost_x_p - 
--        MIN (TITLEBAR_LENGTH_ONSCREEN, current.width);
-+      if (window->placed ||
-+          (!window->placed && !window->calc_placement))
-+        {
-+          *rightmost_x_p = *rightmost_x_p - 
-+            MIN (TITLEBAR_LENGTH_ONSCREEN, current.width);
-+        }
-     }
- 
-   tmp = workspaces;
-@@ -632,7 +640,11 @@ constraint_onscreen_move_func    (MetaWi
-                                     &topmost_y, &bottommost_y);
- 
-   min_delta = topmost_y - orig->y;
--  max_delta = bottommost_y - orig->y;
-+
-+  if (!window->placed && window->calc_placement)
-+    max_delta = bottommost_y - orig->y - orig->height;
-+  else
-+    max_delta = bottommost_y - orig->y;
- 
-   /* Note that min delta (top left) has priority over
-    * max delta (bottom right) to facilitate keeping
-@@ -644,7 +656,11 @@ constraint_onscreen_move_func    (MetaWi
-     *y_delta = min_delta;
- 
-   min_delta = leftmost_x - orig->x;
--  max_delta = rightmost_x - orig->x;
-+
-+  if (!window->placed && window->calc_placement)
-+    max_delta = rightmost_x - orig->x - orig->width;
-+  else
-+    max_delta = rightmost_x - orig->x;
- 
-   if (*x_delta > max_delta)
-     *x_delta = max_delta;