summaryrefslogtreecommitdiff
path: root/src/helpers/WLClasses.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/WLClasses.hpp')
-rw-r--r--src/helpers/WLClasses.hpp50
1 files changed, 49 insertions, 1 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp
index 33278053..ce2d7248 100644
--- a/src/helpers/WLClasses.hpp
+++ b/src/helpers/WLClasses.hpp
@@ -25,10 +25,14 @@ struct SLayerSurface {
int monitorID = -1;
+ std::string szNamespace = "";
+
CAnimatedVariable alpha;
bool fadingOut = false;
bool readyToDelete = false;
+ bool forceBlur = false;
+
// For the list lookup
bool operator==(const SLayerSurface& rhs) {
return layerSurface == rhs.layerSurface && monitorID == rhs.monitorID;
@@ -60,6 +64,26 @@ struct SRenderData {
// for custom round values
int rounding = -1; // -1 means not set
+
+ // for blurring
+ bool blur = false;
+
+ // for windows that animate poorly
+ bool squishOversized = false;
+};
+
+struct SExtensionFindingData {
+ Vector2D origin;
+ Vector2D vec;
+ wlr_surface** found;
+};
+
+struct SStringRuleNames {
+ std::string layout = "";
+ std::string model = "";
+ std::string variant = "";
+ std::string options = "";
+ std::string rules = "";
};
struct SKeyboard {
@@ -73,7 +97,7 @@ struct SKeyboard {
std::string name = "";
- xkb_rule_names currentRules = {0};
+ SStringRuleNames currentRules;
int repeatRate = 0;
int repeatDelay = 0;
int numlockOn = -1;
@@ -94,6 +118,8 @@ struct SMouse {
std::string name = "";
+ bool virt = false;
+
DYNLISTENER(commitConstraint);
DYNLISTENER(destroyMouse);
@@ -221,3 +247,25 @@ struct STabletPad {
return wlrTabletPadV2 == b.wlrTabletPadV2;
}
};
+
+struct SIdleInhibitor {
+ wlr_idle_inhibitor_v1* pWlrInhibitor = nullptr;
+ CWindow* pWindow = nullptr;
+
+ DYNLISTENER(Destroy);
+
+ bool operator==(const SIdleInhibitor& b) {
+ return pWlrInhibitor == b.pWlrInhibitor;
+ }
+};
+
+struct SSwipeGesture {
+ CWorkspace* pWorkspaceBegin = nullptr;
+
+ double delta = 0;
+
+ float avgSpeed = 0;
+ int speedPoints = 0;
+
+ SMonitor* pMonitor = nullptr;
+}; \ No newline at end of file