window-actor: Special-case shaped Java windows

OpenJDK wrongly assumes that shaping a window implies no shadows.
They got lucky until commit b975676c changed the fallback case,
but now their compliance tests are broken. Make them happy again
by special-casing shaped Java windows.
This commit is contained in:
Florian Müllner 2017-05-12 13:40:31 +02:00 committed by Ray Strode
parent 333d775aba
commit 9c9551c1bd

View File

@ -865,6 +865,14 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
if (priv->window->has_custom_frame_extents) if (priv->window->has_custom_frame_extents)
return FALSE; return FALSE;
/*
* OpenJDK wrongly assumes that shaping a window implies no compositor
* shadows; make its compliance tests happy to give it what it wants ...
*/
if (g_strcmp0 (priv->window->res_name, "sun-awt-X11-XWindowPeer") == 0 &&
priv->window->shape_region != NULL)
return FALSE;
/* /*
* Generate shadows for all other windows. * Generate shadows for all other windows.
*/ */