~3v1n0/compiz/gtk-decorator-finalize-menu-0.9.10

Thumbnail, cleanup:

Merged if condition checks.
Declaration of variables when they are needed (C++ style).
Removed redundant brackets.
Removed useless "/* Could someone please explain how this works */"
comment.
Removed extern const unsigned short TEXT_DISTANCE, because this
variable does not exist anymore (value is configurable already).
Changed if (something > 0.0) to if (something), 10 times.
Changed pointedWin = 0; to pointedWin = NULL;.
Used centerX () and centerY () abstractions from
compiz::window::Geometry to determine the icon center coordinates.
Added and removed newlines, if appropriate.
Fixed indentation.

Thumbnail, code speedup:

Return ASAP, do not calculate stuff you might not need.
No need for WIN_W (w) and WIN_H (w) macros, removed those and
replaced them with the local variables int winWidth, int winHeight,
int dockWidth and int dockHeight.
No need for WIN_X (w) and WIN_Y (w) macros, replaced those with
int dockX and int dockY.
Introduced int tHeight = thumb.height;, int tWidth  = thumb.width;,
int halfTWidth  = tWidth  / 2; and int halfTHeight =
tHeight / 2; and used those variables in the following calculations.
Use igMidPoint[0] and igMidPoint[1] as arguments in the
screen->outputDeviceForPoint (arg1, arg2) function, instead of re-
calculating the arguments again.

Thumbnail, GL speedup:

Introduced
GLfloat wxPlusWidth  = wx + width;,
GLfloat wyPlusHeight = wy + height;,
GLfloat wxPlusWPlusOff = wxPlusWidth  + off;,
GLfloat wyPlusHPlusOff = wyPlusHeight + off;,
GLfloat wxMinusOff = wx - off; and
GLfloat wyMinusOff = wy - off;
and used those coordinates in the vertexData arrays. No need to re-
calculate those values multiple times.
Just query optionGetShowDelay () once and use int showDelay later.
We just enable blending if it is currently disabled and disable
blending only, if it was disabled before.

Approved by PS Jenkins bot, MC Return, Sami Jaktholm, Sam Spilsbury.
Filename Latest Rev Last Changed Committer Comment Size
..
.bzr-builddeb 3450.1.1 12 years ago Michael Terry move debian/ packaging inline Diff
cmake 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
compizconfig 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
contribute 3731.3.2 11 years ago MC Return bzr-renamed for_contributors/=>contribute/ Diff
debian 3248.1.1 12 years ago Didier Roche first packaging Diff
gtk 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
images 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
include 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
kde 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
libdecoration 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
metadata 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
plugins 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
po 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
postinst 3262.3.66 12 years ago Sam Spilsbury Added postinst Diff
scripts 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
src 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
tests 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
xslt 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin Diff
.bzrignore 3746.1.2 11 years ago Sam Spilsbury Merge lp:~compiz-team/compiz/compiz.fix_1186560 10 bytes Diff Download File
.gitignore 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 14 bytes Diff Download File
AUTHORS 3577.2.1 12 years ago Daniel van Vugt First draft preparing release 0.9.9.0. Still waiti 4.9 KB Diff Download File
ChangeLog 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 525 KB Diff Download File
CMakeLists.txt 3692.1.1 11 years ago stevenhooke11 at gmail startup notification: show busy cursor when applic 7.3 KB Diff Download File
compiz.pc.in 3486.1.1 12 years ago Daniel d'Andrada Point to compiz library dir in compiz.pc Libs sect 249 bytes Diff Download File
config.h.core.in 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 132 bytes Diff Download File
COPYING 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 274 bytes Diff Download File
COPYING.GPL 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 17.5 KB Diff Download File
COPYING.LGPL 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 25.9 KB Diff Download File
COPYING.MIT 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 1 KB Diff Download File
Doxyfile 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 61.9 KB Diff Download File
INSTALL 3440.2.1 12 years ago Iven Hsu Update build instructions in INSTALL. Since r3434 646 bytes Diff Download File
NEWS 3577.2.1 12 years ago Daniel van Vugt First draft preparing release 0.9.9.0. Still waiti 62.4 KB Diff Download File
README 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 311 bytes Diff Download File
RELEASING 3139 12 years ago smspillaz Merge lp:compiz-scaleaddon-plugin 2.6 KB Diff Download File
VERSION 3667.1.2 11 years ago Sam Spilsbury Bump version to 0.9.10.0 9 bytes Diff Download File