initialize m_currentBuildQuadsIterator to avoid crashes if buildQuads is called before the first startPaint, but eg. from a propertyNotify event for a shadow
This commit is contained in:
parent
065666e35b
commit
8503b6c2a1
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ EffectsHandlerImpl::EffectsHandlerImpl(CompositingType type)
|
||||||
, next_window_quad_type(EFFECT_QUAD_TYPE_START)
|
, next_window_quad_type(EFFECT_QUAD_TYPE_START)
|
||||||
, mouse_poll_ref_count(0)
|
, mouse_poll_ref_count(0)
|
||||||
{
|
{
|
||||||
|
// init is important, otherwise causes crashes when quads are build before the first painting pass start
|
||||||
|
m_currentBuildQuadsIterator = m_activeEffects.end();
|
||||||
|
|
||||||
Workspace *ws = Workspace::self();
|
Workspace *ws = Workspace::self();
|
||||||
connect(ws, SIGNAL(currentDesktopChanged(int)), this, SLOT(slotDesktopChanged(int)));
|
connect(ws, SIGNAL(currentDesktopChanged(int)), this, SLOT(slotDesktopChanged(int)));
|
||||||
connect(ws, SIGNAL(clientAdded(KWin::Client*)), this, SLOT(slotClientAdded(KWin::Client*)));
|
connect(ws, SIGNAL(clientAdded(KWin::Client*)), this, SLOT(slotClientAdded(KWin::Client*)));
|
||||||
|
|
Loading…
Reference in a new issue