compiz/compiz-0.8.6-map-gravity-fix.patch
Adel Gadllah 462792cdb0 Some upstream fixes from git
Backport some minior fixes from upstream:

1bed3dbcea6473f84745ec7a1f936c4f5d3b3a01
a86c461684f122fd286884c4ff28f6ea673fe669
984bca5801d6179b9f8081c4b6c466063975d940
2010-07-30 18:11:16 +02:00

45 lines
1.3 KiB
Diff

From a86c461684f122fd286884c4ff28f6ea673fe669 Mon Sep 17 00:00:00 2001
From: Danny Baumann <dannybaumann@web.de>
Date: Tue, 15 Jun 2010 05:47:05 +0000
Subject: Only reflect the decoration size in MapRequest gravity adjustment, not
the whole window size.
---
diff --git a/src/event.c b/src/event.c
index 8600b5b..febb22d 100644
--- a/src/event.c
+++ b/src/event.c
@@ -2042,11 +2042,11 @@ handleEvent (CompDisplay *d,
XWindowChanges xwc;
unsigned int xwcm, source;
- /* adjust for gravity */
+ /* adjust for gravity, but only for frame size */
xwc.x = w->serverX;
xwc.y = w->serverY;
- xwc.width = w->serverWidth;
- xwc.height = w->serverHeight;
+ xwc.width = 0;
+ xwc.height = 0;
xwcm = adjustConfigureRequestForGravity (w, &xwc,
CWX | CWY,
diff --git a/src/window.c b/src/window.c
index 9974df2..60b47b9 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2568,8 +2568,8 @@ unmapWindow (CompWindow *w)
/* revert gravity adjustment made at MapRequest time */
xwc.x = w->serverX;
xwc.y = w->serverY;
- xwc.width = w->serverWidth;
- xwc.height = w->serverHeight;
+ xwc.width = 0;
+ xwc.height = 0;
xwcm = adjustConfigureRequestForGravity (w, &xwc,
CWX | CWY,
--
cgit v0.8.3.1-30-gff3a