Merge lp:~3v1n0/compiz/decor-size-adjustments-disable into lp:compiz/0.9.11

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Christopher Townsend
Approved revision: 3814
Merged at revision: 3815
Proposed branch: lp:~3v1n0/compiz/decor-size-adjustments-disable
Merge into: lp:compiz/0.9.11
Diff against target: 54 lines (+2/-18)
2 files modified
src/privatewindow.h (+0/-1)
src/window.cpp (+2/-17)
To merge this branch: bzr merge lp:~3v1n0/compiz/decor-size-adjustments-disable
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Christopher Townsend Approve
Review via email: mp+201435@code.launchpad.net

Commit message

Window: disable the size adjustments when decorating/undecorating windows.

Description of the change

Don't apply any size adjustment after setting/unsetting the decoration extents
as they seem to cause more troubles than gains.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

LGTM. Better to revert this since it causes too many headaches.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

So it seems something (not this MP most likely) has broken the build:

The following tests FAILED:
 1064 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestSetValueOnWrapper (SEGFAULT)
 1065 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestGetValueOnWrapper (SEGFAULT)
 1066 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestResetKeyOnWrapper (SEGFAULT)
 1067 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestListKeysOnWrapper (SEGFAULT)
 1068 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestGetSchemaName (SEGFAULT)
 1069 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestGetPath (SEGFAULT)
 1070 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestConnectToChangedSignal (SEGFAULT)
 1074 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorTest.TestWrapperConstructionWithPath (SEGFAULT)
 1075 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorTest.TestGetGSettingsWrapper (SEGFAULT)

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

The problem there is that there's a gsettings path which is invalid -
have a look in the logs for where it should be fixed (easily done).

Note: When testing this fix, please also make sure that guake still
works (that's the application I fixed by putting this one in in the
first place).

On Mon, Jan 13, 2014 at 6:22 PM, Christopher Townsend
<email address hidden> wrote:
> So it seems something (not this MP most likely) has broken the build:
>
> The following tests FAILED:
> 1064 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestSetValueOnWrapper (SEGFAULT)
> 1065 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestGetValueOnWrapper (SEGFAULT)
> 1066 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestResetKeyOnWrapper (SEGFAULT)
> 1067 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestListKeysOnWrapper (SEGFAULT)
> 1068 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestGetSchemaName (SEGFAULT)
> 1069 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestGetPath (SEGFAULT)
> 1070 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorAutoInitTest.TestConnectToChangedSignal (SEGFAULT)
> 1074 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorTest.TestWrapperConstructionWithPath (SEGFAULT)
> 1075 - CCSGSettingsWrapperWithMemoryBackendEnvGoodAllocatorTest.TestGetGSettingsWrapper (SEGFAULT)
> --
> https://code.launchpad.net/~3v1n0/compiz/decor-size-adjustments-disable/+merge/201435
> Your team Compiz Maintainers is subscribed to branch lp:compiz.

--
Sam Spilsbury

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

> Note: When testing this fix, please also make sure that guake still
> works (that's the application I fixed by putting this one in in the
> first place).

Thanks for pointing it out, but it seems that guake is working properly now.

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Awesome, we can drop this hack then :)

On Mon, Jan 13, 2014 at 9:36 PM, Marco Trevisan (Treviño)
<mail@3v1n0.net> wrote:
>> Note: When testing this fix, please also make sure that guake still
>> works (that's the application I fixed by putting this one in in the
>> first place).
>
> Thanks for pointing it out, but it seems that guake is working properly now.
> --
> https://code.launchpad.net/~3v1n0/compiz/decor-size-adjustments-disable/+merge/201435
> Your team Compiz Maintainers is subscribed to branch lp:compiz.

--
Sam Spilsbury

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/privatewindow.h'
2--- src/privatewindow.h 2013-07-19 04:15:01 +0000
3+++ src/privatewindow.h 2014-01-13 15:53:23 +0000
4@@ -401,7 +401,6 @@
5 bool shaded;
6 bool hidden;
7 bool grabbed;
8- bool alreadyDecorated;
9
10 unsigned int desktop;
11
12
13=== modified file 'src/window.cpp'
14--- src/window.cpp 2013-10-30 20:31:20 +0000
15+++ src/window.cpp 2014-01-13 15:53:23 +0000
16@@ -6341,7 +6341,6 @@
17 shaded (false),
18 hidden (false),
19 grabbed (false),
20- alreadyDecorated (false),
21
22 desktop (0),
23
24@@ -6586,20 +6585,6 @@
25 compiz::window::extents::shift (priv->border,
26 priv->sizeHints.win_gravity);
27
28- CompSize sizeDelta;
29-
30- /* We don't want to change the size of the window the first time we
31- * decorate it, but we do thereafter */
32- if (priv->alreadyDecorated)
33- {
34- sizeDelta.setWidth (-((b->left + b->right) -
35- (priv->border.left + priv->border.right)));
36- sizeDelta.setHeight (-((b->top + b->bottom) -
37- (priv->border.top + priv->border.bottom)));
38- }
39- else
40- priv->alreadyDecorated = true;
41-
42 priv->serverInput = *i;
43 priv->border = *b;
44
45@@ -6608,8 +6593,8 @@
46
47 xwc.x = movement.x () + priv->serverGeometry.x ();
48 xwc.y = movement.y () + priv->serverGeometry.y ();
49- xwc.width = sizeDelta.width () + priv->serverGeometry.width ();
50- xwc.height = sizeDelta.height () + priv->serverGeometry.height ();
51+ xwc.width = priv->serverGeometry.width ();
52+ xwc.height = priv->serverGeometry.height ();
53
54 configureXWindow (CWX | CWY | CWWidth | CWHeight, &xwc);
55

Subscribers

People subscribed via source and target branches