Only move placed windows on decoration size changes; backport from head

This commit is contained in:
drago01 2008-06-06 10:53:36 +00:00
parent 99f2a981e8
commit 7983ba5f24
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -upNr compiz-0.7.6.orign/plugins/decoration.c compiz-0.7.6/plugins/decoration.c
--- compiz-0.7.6.orign/plugins/decoration.c 2008-05-29 13:58:17.000000000 +0200
+++ compiz-0.7.6/plugins/decoration.c 2008-06-06 12:48:33.000000000 +0200
@@ -831,7 +831,7 @@ decorWindowUpdate (CompWindow *w,
moveDy = -oldShiftY;
}
- if (!w->attrib.override_redirect && (moveDx || moveDy))
+ if (w->placed && !w->attrib.override_redirect && (moveDx || moveDy))
{
XWindowChanges xwc;
unsigned int mask = CWX | CWY;

View File

@ -14,7 +14,7 @@ URL: http://www.go-compiz.org
License: X11/MIT/GPL
Group: User Interface/Desktops
Version: 0.7.6
Release: 2%{?dist}
Release: 3%{?dist}
Summary: OpenGL window and compositing manager
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -57,6 +57,8 @@ Patch103: composite-cube-logo.patch
Patch105: fedora-logo.patch
Patch106: redhat-logo.patch
#Patch110: scale-key.patch
# upstream commit 45caca2220f75bfd20074c217ebee10825413547
Patch111: compiz-0.7.6-decoration-size.patch
%description
Compiz is one of the first OpenGL-accelerated compositing window
@ -337,6 +339,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Jun 05 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.7.6-3
- Only move placed windows on decoration size changes
* Thu Jun 05 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.7.6-2
- Don't require compiz-fusion in the main package