mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
MetaWayland: or maybe don't do it for override redirect windows?
I don't know, OR windows are not appearing at all.
This commit is contained in:
parent
9bdcc9c418
commit
804c2be976
@ -210,16 +210,20 @@ surface_process_damage (MetaWaylandSurface *surface,
|
|||||||
{
|
{
|
||||||
MetaWindowActor *window_actor =
|
MetaWindowActor *window_actor =
|
||||||
META_WINDOW_ACTOR (meta_window_get_compositor_private (surface->window));
|
META_WINDOW_ACTOR (meta_window_get_compositor_private (surface->window));
|
||||||
|
|
||||||
|
if (!surface->window->override_redirect)
|
||||||
|
{
|
||||||
MetaRectangle rect;
|
MetaRectangle rect;
|
||||||
cairo_rectangle_int_t cairo_rect;
|
cairo_rectangle_int_t cairo_rect;
|
||||||
|
|
||||||
meta_window_get_input_rect (surface->window, &rect);
|
meta_window_get_input_rect (surface->window, &rect);
|
||||||
cairo_rect.x = rect.x;
|
cairo_rect.x = 0;
|
||||||
cairo_rect.y = rect.y;
|
cairo_rect.y = 0;
|
||||||
cairo_rect.width = rect.width;
|
cairo_rect.width = rect.width;
|
||||||
cairo_rect.height = rect.height;
|
cairo_rect.height = rect.height;
|
||||||
|
|
||||||
cairo_region_intersect_rectangle (region, &cairo_rect);
|
cairo_region_intersect_rectangle (region, &cairo_rect);
|
||||||
|
}
|
||||||
|
|
||||||
if (window_actor)
|
if (window_actor)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user