wayland-surface: Don't rewrite input/opaque regions if the client doesn't attach any
This commit is contained in:
parent
d3bc7570d0
commit
57866fb267
@ -319,8 +319,11 @@ meta_wayland_surface_commit (struct wl_client *client,
|
|||||||
surface->pending.dx, surface->pending.dy);
|
surface->pending.dx, surface->pending.dy);
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_window_set_opaque_region (surface->window, surface->pending.opaque_region);
|
if (surface->pending.opaque_region)
|
||||||
meta_window_set_input_region (surface->window, surface->pending.input_region);
|
meta_window_set_opaque_region (surface->window, surface->pending.opaque_region);
|
||||||
|
if (surface->pending.input_region)
|
||||||
|
meta_window_set_input_region (surface->window, surface->pending.input_region);
|
||||||
|
|
||||||
surface_process_damage (surface, surface->pending.damage);
|
surface_process_damage (surface, surface->pending.damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user