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

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