mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-15 07:48:23 +00:00
Unbreak build with libc++ (#1457)
This commit is contained in:
@@ -43,7 +43,7 @@ struct SLayerSurface {
|
||||
bool forceBlur = false;
|
||||
|
||||
// For the list lookup
|
||||
bool operator==(const SLayerSurface& rhs) {
|
||||
bool operator==(const SLayerSurface& rhs) const {
|
||||
return layerSurface == rhs.layerSurface && monitorID == rhs.monitorID;
|
||||
}
|
||||
};
|
||||
@@ -123,7 +123,7 @@ struct SKeyboard {
|
||||
int numlockOn = -1;
|
||||
|
||||
// For the list lookup
|
||||
bool operator==(const SKeyboard& rhs) {
|
||||
bool operator==(const SKeyboard& rhs) const {
|
||||
return keyboard == rhs.keyboard;
|
||||
}
|
||||
};
|
||||
@@ -145,7 +145,7 @@ struct SMouse {
|
||||
DYNLISTENER(commitConstraint);
|
||||
DYNLISTENER(destroyMouse);
|
||||
|
||||
bool operator==(const SMouse& b) {
|
||||
bool operator==(const SMouse& b) const {
|
||||
return mouse == b.mouse;
|
||||
}
|
||||
};
|
||||
@@ -160,7 +160,7 @@ struct SConstraint {
|
||||
DYNLISTENER(setConstraintRegion);
|
||||
DYNLISTENER(destroyConstraint);
|
||||
|
||||
bool operator==(const SConstraint& b) {
|
||||
bool operator==(const SConstraint& b) const {
|
||||
return constraint == b.constraint;
|
||||
}
|
||||
};
|
||||
@@ -185,7 +185,7 @@ struct SXDGPopup {
|
||||
SSurfaceTreeNode* pSurfaceTree = nullptr;
|
||||
|
||||
// For the list lookup
|
||||
bool operator==(const SXDGPopup& rhs) {
|
||||
bool operator==(const SXDGPopup& rhs) const {
|
||||
return popup == rhs.popup;
|
||||
}
|
||||
};
|
||||
@@ -229,7 +229,7 @@ struct STablet {
|
||||
|
||||
std::string name = "";
|
||||
|
||||
bool operator==(const STablet& b) {
|
||||
bool operator==(const STablet& b) const {
|
||||
return wlrDevice == b.wlrDevice;
|
||||
}
|
||||
};
|
||||
@@ -252,7 +252,7 @@ struct STabletTool {
|
||||
DYNLISTENER(TabletToolDestroy);
|
||||
DYNLISTENER(TabletToolSetCursor);
|
||||
|
||||
bool operator==(const STabletTool& b) {
|
||||
bool operator==(const STabletTool& b) const {
|
||||
return wlrTabletTool == b.wlrTabletTool;
|
||||
}
|
||||
};
|
||||
@@ -270,7 +270,7 @@ struct STabletPad {
|
||||
DYNLISTENER(Ring);
|
||||
DYNLISTENER(Destroy);
|
||||
|
||||
bool operator==(const STabletPad& b) {
|
||||
bool operator==(const STabletPad& b) const {
|
||||
return wlrTabletPadV2 == b.wlrTabletPadV2;
|
||||
}
|
||||
};
|
||||
@@ -281,7 +281,7 @@ struct SIdleInhibitor {
|
||||
|
||||
DYNLISTENER(Destroy);
|
||||
|
||||
bool operator==(const SIdleInhibitor& b) {
|
||||
bool operator==(const SIdleInhibitor& b) const {
|
||||
return pWlrInhibitor == b.pWlrInhibitor;
|
||||
}
|
||||
};
|
||||
@@ -333,7 +333,7 @@ struct SIMEPopup {
|
||||
|
||||
DYNLISTENER(focusedSurfaceUnmap);
|
||||
|
||||
bool operator==(const SIMEPopup& other) {
|
||||
bool operator==(const SIMEPopup& other) const {
|
||||
return pSurface == other.pSurface;
|
||||
}
|
||||
};
|
||||
@@ -347,7 +347,7 @@ struct STouchDevice {
|
||||
|
||||
DYNLISTENER(destroy);
|
||||
|
||||
bool operator==(const STouchDevice& other) {
|
||||
bool operator==(const STouchDevice& other) const {
|
||||
return pWlrDevice == other.pWlrDevice;
|
||||
}
|
||||
};
|
||||
@@ -358,7 +358,7 @@ struct SSwitchDevice {
|
||||
DYNLISTENER(destroy);
|
||||
DYNLISTENER(toggle);
|
||||
|
||||
bool operator==(const SSwitchDevice& other) {
|
||||
bool operator==(const SSwitchDevice& other) const {
|
||||
return pWlrDevice == other.pWlrDevice;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user