File kdebase-trinity-fix-builderror-gcc7.patch of Package kdebase3

diff -Naru kdebase-3.5.10_orig/kwin/client.cpp kdebase-3.5.10/kwin/client.cpp
--- kdebase-3.5.10_orig/kwin/client.cpp	2018-04-25 03:43:12.754734767 +0000
+++ kdebase-3.5.10/kwin/client.cpp	2018-04-25 03:50:06.124291155 +0000
@@ -2071,7 +2071,7 @@
     int format, result;
     unsigned long n, left;
     result = XGetWindowProperty(qt_xdisplay(), window(), atoms->net_wm_window_opacity, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, /*(unsigned char **)*/ &data);
-    if (result == Success && data != None && format == 32 )
+    if (result == Success && data && format == 32 )
         {
         opacity_ = *reinterpret_cast< long* >( data );
         custom_opacity = true;