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

88c283
From 6bca5f001338d4647e4e21d549c8cdea4bcad669 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
88c283
index f850cb222..1c8dc8fe5 100644
776610
--- a/src/compositor/meta-window-actor.c
776610
+++ b/src/compositor/meta-window-actor.c
88c283
@@ -798,6 +798,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
-- 
88c283
2.21.0
776610