xwayland: replace opaque_rect, fix an alpha problem
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 3 Sep 2012 13:48:41 +0000 (16:48 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 4 Sep 2012 20:14:29 +0000 (16:14 -0400)
commit4f9c07bf11f90ddb81cae56bf92f88d1c25ed39b
treeb2ea1767a19a23a1ba255f140b21ebbb01247df9
parent8c9c8fcf6e294f0446446d8e9bdfeb37294743c3
xwayland: replace opaque_rect, fix an alpha problem

Remove weston_surface::opaque_rect completely.

Instead, set the opaque region in xwayland.

Before this patch, black text in xterm was transparent. Now it is not.

However, this patch fixes only a part of the alpha problem. If you apply
full-surface alpha with super+alt+wheel, the problem reappears. This
problem is still due to bad alpha channel contents on xwayland windows.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c
src/compositor.h
src/xwayland/window-manager.c