mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 09:41:57 -07:00
@@ -219,7 +219,7 @@ CWLSurfaceResource::CWLSurfaceResource(SP<CWlSurface> resource_) : m_resource(re
|
|||||||
m_pending.updated.bits.input = true;
|
m_pending.updated.bits.input = true;
|
||||||
|
|
||||||
if (!region) {
|
if (!region) {
|
||||||
m_pending.input = CBox{{}, m_pending.bufferSize};
|
m_pending.input = CBox{{}, Vector2D{INT32_MAX - 1, INT32_MAX - 1}};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -26,12 +26,12 @@ struct SSurfaceState {
|
|||||||
bool rejected = false;
|
bool rejected = false;
|
||||||
|
|
||||||
// initial values, copied from protocol text
|
// initial values, copied from protocol text
|
||||||
CHLBufferReference buffer = {}; // The initial surface contents are void
|
CHLBufferReference buffer = {}; // The initial surface contents are void
|
||||||
CRegion damage, bufferDamage; // The initial value for pending damage is empty
|
CRegion damage, bufferDamage; // The initial value for pending damage is empty
|
||||||
CRegion opaque; // The initial value for an opaque region 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
|
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
|
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
|
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
|
// these don't have well defined initial values in the protocol, but these work
|
||||||
Vector2D size, bufferSize;
|
Vector2D size, bufferSize;
|
||||||
|
Reference in New Issue
Block a user