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

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