parent
b46dc9ee0c
commit
a05c797e4a
2 changed files with 7 additions and 7 deletions
|
|
@ -219,7 +219,7 @@ CWLSurfaceResource::CWLSurfaceResource(SP<CWlSurface> resource_) : m_resource(re
|
|||
m_pending.updated.bits.input = true;
|
||||
|
||||
if (!region) {
|
||||
m_pending.input = CBox{{}, m_pending.bufferSize};
|
||||
m_pending.input = CBox{{}, Vector2D{INT32_MAX - 1, INT32_MAX - 1}};
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,12 @@ struct SSurfaceState {
|
|||
bool rejected = false;
|
||||
|
||||
// initial values, copied from protocol text
|
||||
CHLBufferReference buffer = {}; // The initial surface contents are void
|
||||
CRegion damage, bufferDamage; // The initial value for pending damage is empty
|
||||
CRegion opaque; // The initial value for an opaque region is empty
|
||||
CRegion input = CBox{{}, {INT32_MAX, INT32_MAX}}; // The initial value for an input region is infinite
|
||||
wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL; // A newly created surface has its buffer transformation set to normal
|
||||
int scale = 1; // A newly created surface has its buffer scale set to 1
|
||||
CHLBufferReference buffer = {}; // The initial surface contents are void
|
||||
CRegion damage, bufferDamage; // The initial value for pending damage is empty
|
||||
CRegion opaque; // The initial value for an opaque region is empty
|
||||
CRegion input = CBox{{}, {INT32_MAX - 1, INT32_MAX - 1}}; // The initial value for an input region is infinite
|
||||
wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL; // A newly created surface has its buffer transformation set to normal
|
||||
int scale = 1; // A newly created surface has its buffer scale set to 1
|
||||
|
||||
// these don't have well defined initial values in the protocol, but these work
|
||||
Vector2D size, bufferSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue