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

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