https://bugs.kde.org/show_bug.cgi?id=362531

--- Comment #22 from Leslie Zhai <xiangzha...@gmail.com> ---
(In reply to Marco Martin from comment #20)
> (In reply to Leslie Zhai from comment #18)
> > When meets the race situation - KWin has not registered
> > _KDE_NET_WM_BACKGROUND_CONTRAST_REGION, my monkey patch still could NOT work
> > ;-)
> 
> since you can reproduce and have it built from source...
> can you put some debug output in effectwatcher.cpp?
> I'm especially interested in EffectWatcher::nativeEventFilter
> * if events are catched at all by nativeEventFilter
> * if it ever arrives in the branch with the emit
> effectChanged(m_effectActive);
> * what are the values of m_effectActive and isEffectActive() when (if) the
> events arrive

my debug.patch https://forum.isoft-linux.org/viewtopic.php?f=4&t=42

and my test way:
1. pkill plasmashell
2. run plasmashell again
3. openbox --replace
4. kwin_x11 --replace

result:
* EffectWatcher constructor for "_KDE_NET_WM_BACKGROUND_CONTRAST_REGION" atom
is often !isNull()
* kwin_x11 enabled _KDE_NET_WM_BACKGROUND_CONTRAST_REGION, m_effectActive is
true
* when switch to openbox wm without supporting (due to it is only for KWin)
_KDE_NET_WM_BACKGROUND_CONTRAST_REGION, isEffectActive is false, and
m_effectActive became false, then emit effectChanged
* when switch back to kwin_x11, isEffectActive is true, and m_effectActive
became true, then emit effectChanged

so the race condition is just like "openbox --replace" || disabled
_KDE_NET_WM_BACKGROUND_CONTRAST_REGION

Regards,
Leslie Zhai

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to