lp:~mkhu/compiz/compiz.fix_1101648

Created by Micheal Hsu and last modified
Get this branch:
bzr branch lp:~mkhu/compiz/compiz.fix_1101648
Only Micheal Hsu can upload to this branch. If you are Micheal Hsu please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Micheal Hsu
Project:
Compiz
Status:
Merged

Recent revisions

3706. By Micheal Hsu

gtk-window-decorator: destory action menu when any of the (close, min, max) buttons on the title bar is pressed

3705. By MC Return

*EZoom (Enhanced Zoom Desktop) code cleanup:

Optimized ABI check.
Use prefix- instead of postfix-increment.
Assignment and declaration of local variables in one line.
Merged if statements.
Removed redundant brackets.
Fixed indentation.
Added and removed newlines to improve readability.

*EZoom (Enhanced Zoom Desktop) code changes:

Replaced #define WIDTH (x2 - x1) with int width = x2 - x1;
and #define HEIGHT (y2 - y1) with int height = y2 - y1;

Replaced WIDTHOK and HEIGHTOK macros with local variables:
WIDTHOK and HEIGHTOK just need to be calculated once and can then
be used for all cases in void EZoomScreen::ensureVisibilityArea (...).

static_cast <float> for int denominators in divisions.

Removed these redundant gl calls:
glEnable (GL_TEXTURE_2D);
glDisable (GL_TEXTURE_2D);

Zoom Box fixes:
Enabled GL_BLEND for the zoom box to fix transparency issues.
Made outline and fill color and transparency of the zoom box configurable.
Outline width is 2.0 for the zoom box as well now.
(same like for grid preview and screenshot selector outlines)
Fixed zoom box damage handling.
Minor restructuring in zoom box rendering code.

Minor ezoom.xml.in cleanup and enhancements.
Load after mousepoll.

(fixes LP: #1171665, partially fixes LP: #1051290 and LP: #1051295). Fixes: https://bugs.launchpad.net/bugs/1171665.

Approved by PS Jenkins bot, Sam Spilsbury.

3704. By Marco Trevisan (Treviño)

OpenGLES Screen: Ignore the MSAA configs during initialization.

Approved by Sam Spilsbury, PS Jenkins bot, MC Return.

3703. By MC Return

Scale Addons code cleanup:

Always bail out of functions ASAP, do not calculate unnecessary stuff before.
Merged if-condition checks.
Declaration and assignment of local variables in one line.
Reduced the scope of some variables.
Use pre- instead of postfix in- and decrements.
Added and removed newlines where appropriate.
Added brackets to foreach macro loops and removed them otherwise (if redundant).
Fixed indentation.

Note:
This plugin has a huge chunk of code, which has been commented out.
(apparantly/according to the comment, because it does not work)
I was very cautious in refactoring this part of the code, as it currently is
excluded from compilation and thus cannot be tested.

TODO: Test, repair and integrate this code (or remove it if it is redundant).

TODO: Fix half-broken "Exit Scale On Pull".

TODO: Fix the scale-will-only-terminate-if-initiate_key-is-defined bug.

Approved by PS Jenkins bot, Sam Spilsbury.

3702. By MC Return

gtk/*, include/*, kde/*:
Use prefix instead of postfix de- and increments.

Approved by PS Jenkins bot, Sam Spilsbury.

3701. By MC Return

*Ring Switcher, new feature:

Implemented "Vertical Offset" option with a default of 50 pixels.
This allows the CCSM user to easily and exactly configure where the
window title text should be displayed.

Ring Switcher, cleanup:

Simplified RingWindow::compareRingWindowDepth (...).
Bail out of functions ASAP, do not initialize anything you do not need,
if you exit anyway.
Merged if condition checks.
Declaration and assignment of local variables in one line.
Removed redundant brackets.
Added and removed newlines, if appropriate.
Fixed indentation.

(LP: #1173684). Fixes: https://bugs.launchpad.net/bugs/1173684.

Approved by PS Jenkins bot, Sam Spilsbury.

3700. By MC Return

compizconfig/*, libdecoration/*:
Use prefix instead of postfix de- and increments.

Approved by PS Jenkins bot, Sam Spilsbury.

3699. By MC Return

Expo plugin:
Fixed inactive viewports saturation setting being ignored.
Let's "fade to grey"... :)

(LP: #1179183). Fixes: https://bugs.launchpad.net/bugs/1179183.

Approved by PS Jenkins bot, Sam Spilsbury.

3698. By Marco Trevisan (Treviño)

OpenGL Screen: Ignore the MSAA configs during initialization

This fixes a crash with new MESA drivers and high monitor resolutions
caused by the fact that we're accidentally using some MSAA configs with
some drivers in Mesa 9.0.
Taking in account the values of GLX_SAMPLES and GLX_SAMPLE_BUFFERS
fixes the issue.

See mesa bug https://bugs.freedesktop.org/show_bug.cgi?id=61182. Fixes: https://bugs.launchpad.net/bugs/1174495.

Approved by PS Jenkins bot, Sam Spilsbury, MC Return.

3697. By MC Return

Removed redundant Expo configuration changes from ubuntu-config.patch:

The reflection scale change, because reflection is disabled by default anyway.

The inactive viewport saturation change from 100.0% to 40.0%, because this
option does not work (and never did AFAICR), but if it finally gets fixed
Expo's look would dramatically change.

(LP: #1178965). Fixes: https://bugs.launchpad.net/bugs/1178965.

Approved by PS Jenkins bot, Sam Spilsbury.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:compiz/0.9.10
This branch contains Public information 
Everyone can see this information.

Subscribers