Merge lp://qastaging/~smspillaz/compiz-core/compiz-core.lim into lp://qastaging/compiz-core/0.9.5
Status: | Superseded | ||||||||
---|---|---|---|---|---|---|---|---|---|
Proposed branch: | lp://qastaging/~smspillaz/compiz-core/compiz-core.lim | ||||||||
Merge into: | lp://qastaging/compiz-core/0.9.5 | ||||||||
Diff against target: |
843 lines (+623/-8) 15 files modified
gtk/window-decorator/CMakeLists.txt (+6/-0) gtk/window-decorator/decorator.c (+32/-6) gtk/window-decorator/events.c (+48/-0) gtk/window-decorator/gtk-window-decorator.h (+7/-1) gtk/window-decorator/local-menus/CMakeLists.txt (+60/-0) gtk/window-decorator/local-menus/src/local-menus.c (+200/-0) gtk/window-decorator/local-menus/src/local-menus.h (+69/-0) gtk/window-decorator/local-menus/tests/CMakeLists.txt (+3/-0) gtk/window-decorator/local-menus/tests/check_local_menu_on_off/CMakeLists.txt (+21/-0) gtk/window-decorator/local-menus/tests/check_local_menu_on_off/test-local-menu-on-off.cpp (+17/-0) gtk/window-decorator/local-menus/tests/force_local_menu_on/CMakeLists.txt (+21/-0) gtk/window-decorator/local-menus/tests/force_local_menu_on/test-force-local-menu-on.cpp (+67/-0) gtk/window-decorator/local-menus/tests/test-local-menu.h (+48/-0) gtk/window-decorator/metacity.c (+22/-0) gtk/window-decorator/wnck.c (+2/-1) |
||||||||
To merge this branch: | bzr merge lp://qastaging/~smspillaz/compiz-core/compiz-core.lim | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Needs Resubmitting | ||
Review via email: mp+91231@code.qastaging.launchpad.net |
This proposal has been superseded by a proposal from 2012-02-06.
Description of the change
Adds support for Ubuntu's "locally integrated menu bars" into gtk-window-
No tests as of yet, but I'll try and write some for
showing/hiding
forcing them on/off
positions etc
soonish.
Unmerged revisions
- 3006. By Sam Spilsbury
-
Grab buttons too so that we can process motion events on the titlebar and
move the window instead. - 3005. By Sam Spilsbury
-
We also need to test the property too
- 3004. By Sam Spilsbury
-
Merged lp:compiz-core
- 3003. By Sam Spilsbury
-
Tell us if we have them
- 3002. By Sam Spilsbury
-
Fix a crash when trying to show the window menu on a non decorated window
- 3001. By Sam Spilsbury
-
Fix build failure without META_HAS_
LOCAL_MENUS - 3000. By Sam Spilsbury
-
Fix placement of menus on alt-accelerator, remove debug messages
- 2999. By Sam Spilsbury
-
Fix memory error and menu button not showing
- 2998. By Sam Spilsbury
-
Merge lp:compiz-core and allow alt-accelerator to open menus as well as reading the xprop
to determine if local menus are applicable - 2997. By Sam Spilsbury
-
Don't run global setup or teardown functions if no local menus
8 +#define GWD_SHOW_LOCAL_MENU (WNCK_WINDOW_ ACTION_ BELOW << 1)
No plausible reason for using a macro. In C++ constants (enum or unsigned int) are better as they respect scope rules. Also, should this be inside "#ifdef META_HAS_ LOCAL_MENUS" conditional?
296 button_ layout- >right_ buttons[ 2] = META_BUTTON_ FUNCTION_ CLOSE; PER_CORNER; i++) PER_CORNER; i++) layout- >right_ buttons[ i] = META_BUTTON_ FUNCTION_ LAST;
297
298 - for (i = 3; i < MAX_BUTTONS_
299 + for (i = 4; i < MAX_BUTTONS_
300 button_
301 }
I'm not sure what the magic number "3"->"4" is. But we now seem to miss 3 entirely. Is that correct?