Merge lp:~mc-return/compiz/compiz.merge-fix1115128-expose-unmaximize_or_minimize_key-in-g-c-c into lp:compiz/0.9.9

Proposed by MC Return
Status: Merged
Approved by: Sam Spilsbury
Approved revision: 3597
Merged at revision: 3605
Proposed branch: lp:~mc-return/compiz/compiz.merge-fix1115128-expose-unmaximize_or_minimize_key-in-g-c-c
Merge into: lp:compiz/0.9.9
Diff against target: 70 lines (+7/-7)
2 files modified
compizconfig/integration/gnome/include/ccs_gnome_integration_constants.h (+1/-1)
compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c (+6/-6)
To merge this branch: bzr merge lp:~mc-return/compiz/compiz.merge-fix1115128-expose-unmaximize_or_minimize_key-in-g-c-c
Reviewer Review Type Date Requested Status
Sam Spilsbury Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Didier Roche-Tolomelli Approve
MC Return Needs Resubmitting
Review via email: mp+146384@code.launchpad.net

Commit message

Expose unmaximize_or_minimize_window_key instead of unmaximize_window_key
in Gnome Control Center.

(LP: #1115128)

Description of the change

[What has been done already]

1. Added new key and functionality to Compiz, the new key unmaximize_or_minimize_window is disabled by default:
https://code.launchpad.net/~mc-return/unity/unity.merge-fix966099-shortcut-fails-to-minimize-just-restores/+merge/145474

2. Modified the quilt patch ubuntu-config.patch to use the new unmaximize_or_minimize_key, when Ctrl+Alt+Down is pressed:
https://code.launchpad.net/~mc-return/compiz/compiz.merge-fix966099-refresh-quilt-patch.0/+merge/146203

3. Unity now shows the unmaximize_or_minimize_window_key in the Help Overlay Shortcut and I also changed the gconf key Unity converts from Compiz, without having added this key in Compiz before, which was wrong - see here:
https://code.launchpad.net/~mc-return/unity/unity.merge-fix966099-shortcut-fails-to-minimize-just-restores/+merge/145474

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

79 +unmaximize-or-minimize-window-key = /apps/compizconfig-1/profiles/Default/plugins/core/screen0/options/unmaximize_or_minimize_window_key
-> should be rather unmaximize_window_key for the gconf part, as the other key didn't exist at the time.

Same change than in unity :)

review: Needs Fixing
Revision history for this message
MC Return (mc-return) wrote :

Sam, I've requested a review from you here, because I want to make sure to get it right.
For easier reference I will add all links of related MPs and merges to the description, see above.

Revision history for this message
MC Return (mc-return) wrote :

> 79 +unmaximize-or-minimize-window-key = /apps/compizconfig-1/profiles/Def
> ault/plugins/core/screen0/options/unmaximize_or_minimize_window_key
> -> should be rather unmaximize_window_key for the gconf part, as the other key
> didn't exist at the time.
>
> Same change than in unity :)

Done as requested.

Here the Unity MP:
https://code.launchpad.net/~mc-return/unity/unity.merge-fix1115128-gconf-problems/+merge/146419

review: Needs Resubmitting
Revision history for this message
MC Return (mc-return) wrote :

didrocks, as far as I can tell everything should work...

Changes look reasonable, no other relevant references to 'unmaximize' are to be found in the code.
It compiles without warnings.
When I run it and reset to default settings and set to gsettings backend using CCSM and open g-c-c keyboard settings the 'Restore window' setting is there and shows 'Ctrl+Super+Down'.
Unfortunately I cannot test changes to those settings as all g-c-c settings seem to be ignored here locally, so I cannot 100% guarantee that it works, although I tried hard.

I would be happy if someone else could test this also to make sure everything is 100% correct.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Ok, let's get that in, nobody has time to effectively to test the g-c-c part it but the shortcut is already not exposed, so this will only be able to potentially fix the exposure that MC Return confirmed :)

review: Approve
Revision history for this message
MC Return (mc-return) wrote :

> Ok, let's get that in, nobody has time to effectively to test the g-c-c part
> it but the shortcut is already not exposed, so this will only be able to
> potentially fix the exposure that MC Return confirmed :)

didrocks, I think this is a good decision. Once this is in trunk, I'll make sure
it gets tested properly.
If there are problems unsolved regarding this new shortcut, I'll make sure to
propose further MPs to fix those also.

The only thing I am currently not 100% sure about is the Unity part here:
https://code.launchpad.net/~mc-return/unity/unity.merge-fix1115128-gconf-problems/+merge/146419

This (tools/convert-files/compiz-profile-active-unity.convert):
+unmaximize-window-key = /apps/compiz-1/plugins/core/screen0/options/unmaximize_window_key
should maybe be:
+unmaximize-window-key = /apps/compiz-1/plugins/core/screen0/options/unmaximize_or_minimize_window_key

while (tools/convert-files/compiz-profile-unity.convert):
+unmaximize-window-key = /apps/compizconfig-1/profiles/unity/plugins/core/screen0/options/unmaximize_window_key
should maybe be:
+unmaximize-window-key = /apps/compizconfig-1/profiles/unity/plugins/core/screen0/options/unmaximize_or_minimize_window_key

If that is the case, which we'll find out soon, I'll propose a fix soonish.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
MC Return (mc-return) wrote :

FAILED: Autolanding.
Approved revid is not set in launchpad (maybe a permission problem?).
http://jenkins.qa.ubuntu.com/job/compiz-mbs-autolanding/3/

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

I still can't believe nobody has time to test the g-c-c part.

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

Apologies for the delay, marking for merging again.

See https://lists.launchpad.net/unity-dev/msg00598.html

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'compizconfig/integration/gnome/include/ccs_gnome_integration_constants.h'
2--- compizconfig/integration/gnome/include/ccs_gnome_integration_constants.h 2012-09-25 01:26:54 +0000
3+++ compizconfig/integration/gnome/include/ccs_gnome_integration_constants.h 2013-02-06 13:07:22 +0000
4@@ -131,7 +131,7 @@
5 CCSSettingIntegratedSettingPair CORE_RAISE_WINDOW_KEY;
6 CCSSettingIntegratedSettingPair CORE_MAXIMIZE_WINDOW_VERTICALLY_KEY;
7 CCSSettingIntegratedSettingPair CORE_MAXIMIZE_WINDOW_HORIZONTALLY_KEY;
8- CCSSettingIntegratedSettingPair CORE_UNMAXIMIZE_WINDOW_KEY;
9+ CCSSettingIntegratedSettingPair CORE_UNMAXIMIZE_OR_MINIMIZE_WINDOW_KEY;
10 CCSSettingIntegratedSettingPair CORE_MAXIMIZE_WINDOW_KEY;
11 CCSSettingIntegratedSettingPair CORE_MINIMIZE_WINDOW_KEY;
12 CCSSettingIntegratedSettingPair CORE_TOGGLE_WINDOW_MAXIMIZED_KEY;
13
14=== modified file 'compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c'
15--- compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c 2012-10-12 05:15:12 +0000
16+++ compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c 2013-02-06 13:07:22 +0000
17@@ -119,7 +119,7 @@
18 { "raise_window_key", "raise" },
19 { "maximize_window_vertically_key", "maximize_vertically" },
20 { "maximize_window_horizontally_key", "maximize_horizontally" },
21- { "unmaximize_window_key", "unmaximize" },
22+ { "unmaximize_or_minimize_window_key", "unmaximize" },
23 { "maximize_window_key", "maximize" },
24 { "minimize_window_key", "minimize" },
25 { "toggle_window_maximized_key", "toggle_maximized" },
26@@ -388,7 +388,7 @@
27 array[109].pluginName = plugins->CORE;
28 array[109].settingName = settings->CORE_MAXIMIZE_WINDOW_HORIZONTALLY_KEY.compizName;
29 array[110].pluginName = plugins->CORE;
30- array[110].settingName = settings->CORE_UNMAXIMIZE_WINDOW_KEY.compizName;
31+ array[110].settingName = settings->CORE_UNMAXIMIZE_OR_MINIMIZE_WINDOW_KEY.compizName;
32 array[111].pluginName = plugins->CORE;
33 array[111].settingName = settings->CORE_MAXIMIZE_WINDOW_KEY.compizName;
34 array[112].pluginName = plugins->CORE;
35@@ -609,7 +609,7 @@
36 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_RAISE_WINDOW_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
37 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_VERTICALLY_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
38 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_HORIZONTALLY_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
39- g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
40+ g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_OR_MINIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
41 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
42 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MINIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
43 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_TOGGLE_WINDOW_MAXIMIZED_KEY.compizName, GINT_TO_POINTER (quarks->ORG_GNOME_DESKTOP_WM_KEYBINDINGS));
44@@ -773,7 +773,7 @@
45 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_RAISE_WINDOW_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
46 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_VERTICALLY_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
47 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_HORIZONTALLY_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
48- g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_WINDOW_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
49+ g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_OR_MINIMIZE_WINDOW_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
50 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
51 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MINIMIZE_WINDOW_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
52 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_TOGGLE_WINDOW_MAXIMIZED_KEY.compizName, (gpointer) categories->WINDOW_KEYBINDINGS);
53@@ -937,7 +937,7 @@
54 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_RAISE_WINDOW_KEY.compizName, GINT_TO_POINTER (OptionKey));
55 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_VERTICALLY_KEY.compizName, GINT_TO_POINTER (OptionKey));
56 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_HORIZONTALLY_KEY.compizName, GINT_TO_POINTER (OptionKey));
57- g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (OptionKey));
58+ g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_OR_MINIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (OptionKey));
59 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (OptionKey));
60 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MINIMIZE_WINDOW_KEY.compizName, GINT_TO_POINTER (OptionKey));
61 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_TOGGLE_WINDOW_MAXIMIZED_KEY.compizName, GINT_TO_POINTER (OptionKey));
62@@ -1100,7 +1100,7 @@
63 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_RAISE_WINDOW_KEY.compizName, (gpointer) names->CORE_RAISE_WINDOW_KEY.gnomeName);
64 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_VERTICALLY_KEY.compizName, (gpointer) names->CORE_MAXIMIZE_WINDOW_VERTICALLY_KEY.gnomeName);
65 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_HORIZONTALLY_KEY.compizName, (gpointer) names->CORE_MAXIMIZE_WINDOW_HORIZONTALLY_KEY.gnomeName);
66- g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_WINDOW_KEY.compizName, (gpointer) names->CORE_UNMAXIMIZE_WINDOW_KEY.gnomeName);
67+ g_hash_table_insert (coreHashTable, (gpointer) names->CORE_UNMAXIMIZE_OR_MINIMIZE_WINDOW_KEY.compizName, (gpointer) names->CORE_UNMAXIMIZE_OR_MINIMIZE_WINDOW_KEY.gnomeName);
68 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MAXIMIZE_WINDOW_KEY.compizName, (gpointer) names->CORE_MAXIMIZE_WINDOW_KEY.gnomeName);
69 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_MINIMIZE_WINDOW_KEY.compizName, (gpointer) names->CORE_MINIMIZE_WINDOW_KEY.gnomeName);
70 g_hash_table_insert (coreHashTable, (gpointer) names->CORE_TOGGLE_WINDOW_MAXIMIZED_KEY.compizName, (gpointer) names->CORE_TOGGLE_WINDOW_MAXIMIZED_KEY.gnomeName);

Subscribers

People subscribed via source and target branches