Merge lp:~mc-return/compiz/compiz.merge-fix1099100-thumbnail-title-text-issues.0 into lp:compiz/0.9.9
Status: | Merged |
---|---|
Approved by: | Brandon Schaefer |
Approved revision: | 3587 |
Merged at revision: | 3593 |
Proposed branch: | lp:~mc-return/compiz/compiz.merge-fix1099100-thumbnail-title-text-issues.0 |
Merge into: | lp:compiz/0.9.9 |
Diff against target: |
155 lines (+37/-16) 2 files modified
plugins/thumbnail/src/thumbnail.cpp (+19/-15) plugins/thumbnail/thumbnail.xml.in (+18/-1) |
To merge this branch: | bzr merge lp:~mc-return/compiz/compiz.merge-fix1099100-thumbnail-title-text-issues.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
Sam Spilsbury | Approve | ||
MC Return | Needs Resubmitting | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+144954@code.launchpad.net |
Commit message
Thumbnail plugin, new features:
Added a rounded background to the window title text.
Made the distance between text and thumbnail configurable.
Window-
the thumbnail live preview only, excluding the text.
This ensures no transparent hole is generated anymore and
fixes the look of the window title text rendering, while
enhancing the possibility for customization.
Code cleanup:
Return ASAP if the text plugin is not loaded.
No need to check if (t->text) twice.
Improved height calculation.
thumbnail.xml.in changes:
Added options to adjust the text distance (pixel between
thumbnail and window title text) and font background color
and opacity.
Made the window title text font white and fully opaque
to create a sane default, otherwise it would not be
visible on a transparent black background (alpha and color
are the same like the default background/glow color).
(LP: #1099100)
Description of the change
As requested no .xml.in cleanup this time.
A second MP will follow soon.
Note:
These will not be the final fixes for thumbnail as
there are still a few issues unsolved...
1. This plugin (like several others, btw.) requires
the text plugin to be activated to fully work, but
the user is not informed about that fact, see:
https:/
Ideally bug 1101198 should be fixed first to perfectly
solve this issue, but if you think this feature is
not necessary, we should add text requirements to those
plugins.
2. While working smoothly with gallium-radeon, there
is still flickering of the thumbnail texture itself
when using fglrx. I have not tested other gfx/driver
combinations but expect there might be similar issues.
3. This plugin won't play together nicely with multiple
docks/taskbars/
one thumbnail live window preview per icon.
This looks fine code wise.
I'm a bit concerned as to how things will look once we start requiring that the text background be rendered in addition to the text. My understanding was that we were meant to render the thumbnail background (window) and then render the text on top of that. What was the reason that we couldn't do that? If it was that there was really a "hole" where the text was, then this sounds like a more fundamental problem with the rendering of the thumbnail background itself, and we shouldn't cover it up by rendering a text background on top of it.
Could you post a screenshot to see how it looks?