$OpenBSD: patch-src_compizconfig_pyx,v 1.2 2021/02/28 21:01:32 daniel Exp $
Index: src/compizconfig.pyx
--- src/compizconfig.pyx.orig
+++ src/compizconfig.pyx
@@ -583,7 +583,7 @@ cdef class Setting:
     cdef object extendedStrRestrictions
     cdef object baseStrRestrictions
 
-    def __new__ (self, Plugin plugin, name, isScreen, screenNum = 0):
+    def __cinit__ (self, Plugin plugin, name, isScreen, screenNum = 0):
         cdef CCSSettingType t
         cdef CCSSettingInfo * i
 
@@ -653,7 +653,7 @@ cdef class Setting:
 
     property Hints:
         def __get__ (self):
-            if self.ccsSetting.hints == '':
+            if not self.ccsSetting.hints:
                 return []
             else:
                 return str (self.ccsSetting.hints).split (";")[:-1]
@@ -689,7 +689,7 @@ cdef class SSGroup:
     cdef object display
     cdef object screens
 
-    def __new__ (self, disp, screen):
+    def __cinit__ (self, disp, screen):
         self.display = disp
         self.screens = screen
 
@@ -715,7 +715,7 @@ cdef class Plugin:
     cdef object ranking
     cdef object hasExtendedString
     
-    def __new__ (self, Context context, name):
+    def __cinit__ (self, Context context, name):
         self.ccsPlugin = ccsFindPlugin (context.ccsContext, name)
         self.context = context
         self.screens = []
@@ -1056,7 +1056,7 @@ cdef class Profile:
     cdef Context context
     cdef char * name
 
-    def __new__ (self, Context context, name):
+    def __cinit__ (self, Context context, name):
         self.context = context
         self.name = strdup (name)
 
@@ -1078,7 +1078,7 @@ cdef class Backend:
     cdef Bool profileSupport
     cdef Bool integrationSupport
 
-    def __new__ (self, Context context, info):
+    def __cinit__ (self, Context context, info):
         self.context = context
         self.name = strdup (info[0])
         self.shortDesc = strdup (info[1])
@@ -1122,7 +1122,7 @@ cdef class Context:
     cdef int nScreens
     cdef Bool integration
 
-    def __new__ (self, screens = [0], plugins = [], basic_metadata = False):
+    def __cinit__ (self, screens = [0], plugins = [], basic_metadata = False):
         cdef CCSPlugin * pl
         cdef CCSList * pll
         if basic_metadata:
