protocols: Remove incorrect CM proto debug check and fix preferred image description (#11023)
This commit is contained in:
parent
06fcdbd9c7
commit
bc764f7065
3 changed files with 18 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "Compositor.hpp"
|
||||
#include "../../Compositor.hpp"
|
||||
#include "Output.hpp"
|
||||
#include "Seat.hpp"
|
||||
#include "../types/WLBuffer.hpp"
|
||||
|
|
@ -17,6 +18,8 @@
|
|||
#include "render/Texture.hpp"
|
||||
#include <cstring>
|
||||
|
||||
using namespace NColorManagement;
|
||||
|
||||
class CDefaultSurfaceRole : public ISurfaceRole {
|
||||
public:
|
||||
virtual eSurfaceRole role() {
|
||||
|
|
@ -535,6 +538,10 @@ void CWLSurfaceResource::commitState(SSurfaceState& state) {
|
|||
dropCurrentBuffer();
|
||||
}
|
||||
|
||||
SImageDescription CWLSurfaceResource::getPreferredImageDescription() {
|
||||
return m_enteredOutputs.size() == 1 ? m_enteredOutputs[0]->m_imageDescription : g_pCompositor->getPreferredImageDescription();
|
||||
}
|
||||
|
||||
void CWLSurfaceResource::updateCursorShm(CRegion damage) {
|
||||
if (damage.empty())
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue