desktop: cleanup, unify desktop elements as views (#12563)
This commit is contained in:
parent
834f019bab
commit
920353370b
105 changed files with 2636 additions and 2337 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#include "AlphaModifier.hpp"
|
||||
#include "../desktop/WLSurface.hpp"
|
||||
#include "../desktop/view/WLSurface.hpp"
|
||||
#include "../render/Renderer.hpp"
|
||||
#include "alpha-modifier-v1.hpp"
|
||||
#include "core/Compositor.hpp"
|
||||
|
|
@ -31,7 +31,7 @@ void CAlphaModifier::setResource(UP<CWpAlphaModifierSurfaceV1>&& resource) {
|
|||
});
|
||||
|
||||
m_listeners.surfaceCommitted = m_surface->m_events.commit.listen([this] {
|
||||
auto surface = CWLSurface::fromResource(m_surface.lock());
|
||||
auto surface = Desktop::View::CWLSurface::fromResource(m_surface.lock());
|
||||
|
||||
if (surface && surface->m_alphaModifier != m_alpha) {
|
||||
surface->m_alphaModifier = m_alpha;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue