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

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