Re: QGlobalStatic and windowing specific calls in dtor

2016-05-31 Thread Martin Graesslin
On Monday, May 30, 2016 5:50:23 PM CEST Aleix Pol wrote: > On Mon, May 30, 2016 at 4:25 PM, Martin Graesslin wrote: > > Hi frameworks-dev, > > > > I have a problem with my KWayland based plugin for KIdleTime. KIdleTime > > uses a QGlobalStatic, so it gets destroyed at exit-time. At that point >

Re: QGlobalStatic and windowing specific calls in dtor

2016-05-30 Thread Aleix Pol
On Mon, May 30, 2016 at 4:25 PM, Martin Graesslin wrote: > Hi frameworks-dev, > > I have a problem with my KWayland based plugin for KIdleTime. KIdleTime uses a > QGlobalStatic, so it gets destroyed at exit-time. At that point the > QGuiApplication and the qpa plugin does not exist any more, so an

QGlobalStatic and windowing specific calls in dtor

2016-05-30 Thread Martin Graesslin
Hi frameworks-dev, I have a problem with my KWayland based plugin for KIdleTime. KIdleTime uses a QGlobalStatic, so it gets destroyed at exit-time. At that point the QGuiApplication and the qpa plugin does not exist any more, so any windowing system specific calls will fail. In the case of the