wayland/inputs: Change WaylandCursorData constructor and destructor
wayland/inputs: Change WaylandCursorData constructor and destructor

It was using a funny "static WaylandCursorData" via Initialize() and
now I've changed it for using the more conventional way through the
class name constructor. Also Clear() was dropped in favor to the
destructor.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>

The patch was imported from https://github.com/tiagovignatti/ozone-wayland/
as of commit id 5bfabfad130b639b4215e57c11acccd003d4c429.

Change had fixed the crash associated with WaylandCursor
deletion but has a potential for memory leak. These changes
ensure that only one instance of CursorData is created.

Signed-off-by: Kalyan Kondapally <5ecbd7dfde10337eaa843ccffcb8a0f17d663d02@intel.com>

darktears/ozone-wayland,hongzhang-yan/ozone-wayland,darktears/ozone-wayland,sjnewbury/ozone-wayland,mrunalk/ozone-wayland,Tarnyko/ozone-wayland,kuscsik/ozone-wayland,darktears/ozone-wayland,ds-hwang/ozone-wayland,spang-chromium/ozone-wayland,shaochangbin/ozone-wayland,hongzhang-yan/ozone-wayland,hongzhang-yan/ozone-wayland,nicoguyo/ozone-wayland,kalyankondapally/ozone-wayland,nagineni/ozone-wayland,rakuco/ozone-wayland,racarr-ubuntu/ozone-mir,kishansheshagiri/ozone-wayland,AndriyP/ozone-wayland,etrunko/ozone-wayland,clopez/ozone-wayland,siteshwar/ozone-wayland,kishansheshagiri/ozone-wayland,spang-chromium/ozone-wayland,speedpat/ozone-wayland,qjia7/ozone-wayland,dnarvaez/ozone-wayland,qjia7/ozone-wayland,likewise/ozone-wayland,01org/ozone-wayland,kishansheshagiri/ozone-wayland,likewise/ozone-wayland,racarr-ubuntu/ozone-mir,mrunalk/ozone-wayland,racarr-ubuntu/ozone-mir,spang-chromium/ozone-wayland,ds-hwang/ozone-wayland,tiagovignatti/ozone-wayland,baillaw/ozone-wayland,qjia7/ozone-wayland,joone/ozone-wayland,dnarvaez/ozone-wayland,nicoguyo/ozone-wayland,kuscsik/ozone-wayland,sjnewbury/ozone-wayland,siteshwar/ozone-wayland,AndriyP/ozone-wayland,01org/ozone-wayland,baillaw/ozone-wayland,michaelforney/ozone-wayland,tiagovignatti/ozone-wayland,Tarnyko/ozone-wayland,01org/ozone-wayland,baillaw/ozone-wayland,rakuco/ozone-wayland,joone/ozone-wayland,siteshwar/ozone-wayland,michaelforney/ozone-wayland,michaelforney/ozone-wayland,rakuco/ozone-wayland,nagineni/ozone-wayland,racarr-ubuntu/ozone-mir,dnarvaez/ozone-wayland,baillaw/ozone-wayland,kalyankondapally/ozone-wayland,etrunko/ozone-wayland,spang-chromium/ozone-wayland,tiagovignatti/ozone-wayland,joone/ozone-wayland,likewise/ozone-wayland,speedpat/ozone-wayland,hongzhang-yan/ozone-wayland,joone/ozone-wayland,kalyankondapally/ozone-wayland,likewise/ozone-wayland,sjnewbury/ozone-wayland,clopez/ozone-wayland,AndriyP/ozone-wayland,clopez/ozone-wayland,kishansheshagiri/ozone-wayland,qjia7/ozone-wayland,AndriyP/ozone-wayland,shaochangbin/ozone-wayland,siteshwar/ozone-wayland,Tarnyko/ozone-wayland,dnarvaez/ozone-wayland,tiagovignatti/ozone-wayland,kuscsik/ozone-wayland,speedpat/ozone-wayland,nicoguyo/ozone-wayland,Tarnyko/ozone-wayland,rakuco/ozone-wayland,01org/ozone-wayland,nagineni/ozone-wayland,kalyankondapally/ozone-wayland,etrunko/ozone-wayland,mrunalk/ozone-wayland,mrunalk/ozone-wayland,ds-hwang/ozone-wayland,etrunko/ozone-wayland,nagineni/ozone-wayland,shaochangbin/ozone-wayland,nicoguyo/ozone-wayland,darktears/ozone-wayland,michaelforney/ozone-wayland,kuscsik/ozone-wayland,clopez/ozone-wayland,speedpat/ozone-wayland,shaochangbin/ozone-wayland,sjnewbury/ozone-wayland,ds-hwang/ozone-wayland