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

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