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

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