Blame SOURCES/0001-window-actor-Special-case-shaped-Java-windows.patch

776610
From ec74bb9607f5187f8fda37dba1882efe1693e24f Mon Sep 17 00:00:00 2001
776610
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
776610
Date: Fri, 12 May 2017 13:40:31 +0200
776610
Subject: [PATCH] window-actor: Special-case shaped Java windows
776610
776610
OpenJDK wrongly assumes that shaping a window implies no shadows.
776610
They got lucky until commit b975676c changed the fallback case,
776610
but now their compliance tests are broken. Make them happy again
776610
by special-casing shaped Java windows.
776610
---
776610
 src/compositor/meta-window-actor.c | 8 ++++++++
776610
 1 file changed, 8 insertions(+)
776610
776610
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
776610
index 381d3ea85..b67fb3ce1 100644
776610
--- a/src/compositor/meta-window-actor.c
776610
+++ b/src/compositor/meta-window-actor.c
776610
@@ -865,6 +865,14 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
776610
   if (priv->window->has_custom_frame_extents)
776610
     return FALSE;
776610
 
776610
+  /*
776610
+   * OpenJDK wrongly assumes that shaping a window implies no compositor
776610
+   * shadows; make its compliance tests happy to give it what it wants ...
776610
+   */
776610
+  if (g_strcmp0 (priv->window->res_name, "sun-awt-X11-XWindowPeer") == 0 &&
776610
+      priv->window->shape_region != NULL)
776610
+    return FALSE;
776610
+
776610
   /*
776610
    * Generate shadows for all other windows.
776610
    */
776610
-- 
776610
2.20.1
776610