[compiz] broken window decorator with unity-window-decorator

Bug #779801 reported by Jammy Zhou
28
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity GLES port
Fix Released
High
Travis Watkins
ubuntu-omap4-extras-graphics
Fix Released
High
Xavier Boudet

Bug Description

- login with unity-2d on panda board
- open a terminal window
- run "compiz --replace &"
- run "unity-window-decorator --replace &"
- resize the terminal window
- black area appeared surrounding the window
- there are always black area surrounding newly opened window as well as menus

Revision history for this message
Jammy Zhou (jammy-zhou) wrote :
summary: - black area surrounding window after resize
+ [compiz] black area surrounding window after resize
Changed in unity-gles:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

The black area is not happening anymore with latest compiz and latest unity-window-decorator patch, but now a different behavior happens at the screen, messing up with the compositor.

summary: - [compiz] black area surrounding window after resize
+ [compiz] broken window decorator with unity-window-decorator
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

After moving to another desktop and showing the menu.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

This is the patch used that adds the unity-window-decorator support:
http://bazaar.launchpad.net/~linaro-graphics-wg/unity-gles/compiz/view/head:/debian/patches/01_unity_window_decorator.patch

This patch is basically a copy of the unity-window-decorator code available at the latest package version at Natty (1:0.9.4+bzr20110415-0ubuntu2).

Changed in unity-gles:
assignee: nobody → Travis Watkins (amaranth)
importance: Medium → High
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

After porting the grid plugin this behavior change at the moment you move the window to a corner of the screen. Once that's done the decorator will show only the black box, and the weird rendering behavior will go away.

Once the black box is back staticswitcher will show the rectangle while switching the window and compositing with another GLES application will also work.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

I'm able to reproduce building directly from current Travis's branch (a2f1e474aa3f326074c449522ba9272eb8206bc6).

Build steps:
apt-get build-dep compiz (after enabling the unity-gles PPA)
cmake ../ -DBUILD_GLES=TRUE -DCMAKE_INSTALL_PREFIX=/home/ubuntu/compiz/build2
make
make instal

Run:
./compiz --replace composite opengl

At the time it composites the first entire frame, is already corrupted. The behavior change when using grid is probably because of the blend enable and disable.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

I can confirm that this bug doesn't happen with 1.7.5.0~gitc77b84a-3. One difference from that driver version is the way it's handling a transparent FB (even alpha had to be disabled at the DRM driver, probably something else missing in the kernel). After reverting the way it's handling the FB it goes back to normal.

But even when the weird blend issue is fixed, the black box is still covering the window (probably a gl_blend conflict with nux).

Travis, were you able to test your latest changes at Nux to coordinate the gl_blend with compiz?

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

This is actually fixed at the released tarballs, the new issue is related with the gl_blend conflicts between nux and compiz, but topic for another bug.

Changed in unity-gles:
status: Confirmed → Fix Released
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

This is again an issue with driver pvr-omap4 - 1.7.9.2.1.7-1 available at the TI PPA. Xavier knows about the issue and the commit that caused the bug at the driver side.

Without that patch reverted, we're basically unable to use the Unity 3D desktop.

Changed in ubuntu-omap4-extras-graphics:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Xavier Boudet (x-boudet)
Revision history for this message
Xavier Boudet (x-boudet) wrote :

Pushed to TI OMAP trunk PPA

New pvr-omap packages versions:
- pvr-omap4-dkms version will be 1.7.10.0.1.1-1
- pvr-omap4 version will be 1.7.10.0.1.2-1

Check: https://launchpad.net/~tiomap-dev/+archive/omap-trunk

Changed in ubuntu-omap4-extras-graphics:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.