mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
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:
parent
333d775aba
commit
9c9551c1bd
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user