From 9655d0c13822bdaa5d86fd1153c27c184fd55253 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 6 Jul 2022 15:42:37 +0200 Subject: added support for wlr_idle_inhibitor_v1 --- src/helpers/WLClasses.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 33278053..d9374158 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -221,3 +221,14 @@ 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; + } +}; -- cgit v1.2.3 From 6a16f11d63cead0b8526f442c18727a6f3dc76ea Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 6 Jul 2022 21:57:35 +0200 Subject: add namespace to hyprctl layers --- src/helpers/WLClasses.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index d9374158..0ab4c52b 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -25,6 +25,8 @@ struct SLayerSurface { int monitorID = -1; + std::string szNamespace = ""; + CAnimatedVariable alpha; bool fadingOut = false; bool readyToDelete = false; -- cgit v1.2.3 From 1cf2f378d4a0e5e3da757d90404c2816a6765626 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 6 Jul 2022 22:12:03 +0200 Subject: added ls blurring --- src/helpers/WLClasses.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 0ab4c52b..b06390b5 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -31,6 +31,8 @@ struct SLayerSurface { 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; @@ -62,6 +64,9 @@ struct SRenderData { // for custom round values int rounding = -1; // -1 means not set + + // for blurring + bool blur = false; }; struct SKeyboard { -- cgit v1.2.3 From 4b796d30c190e14aa39a9540395523cee27bd348 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 7 Jul 2022 11:52:12 +0200 Subject: Added swipe workspace gestures --- src/helpers/WLClasses.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index b06390b5..b6c38416 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -239,3 +239,14 @@ struct SIdleInhibitor { 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 -- cgit v1.2.3 From 92e17f29256af4db05ebd17b9f2d013ee3ca37ab Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 8 Jul 2022 12:27:05 +0200 Subject: added rules to hyprctl devices and fixed rules --- src/helpers/WLClasses.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index b6c38416..06f58f0a 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -69,6 +69,14 @@ struct SRenderData { bool blur = false; }; +struct SStringRuleNames { + std::string layout = ""; + std::string model = ""; + std::string variant = ""; + std::string options = ""; + std::string rules = ""; +}; + struct SKeyboard { wlr_input_device* keyboard; @@ -80,7 +88,7 @@ struct SKeyboard { std::string name = ""; - xkb_rule_names currentRules = {0}; + SStringRuleNames currentRules; int repeatRate = 0; int repeatDelay = 0; int numlockOn = -1; -- cgit v1.2.3 From ad66c158ba793c424519eaee0a64fb81860f5e3c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 11 Jul 2022 20:23:16 +0200 Subject: don't refocus on virt ptrs --- src/helpers/WLClasses.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 06f58f0a..962c27b0 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -109,6 +109,8 @@ struct SMouse { std::string name = ""; + bool virt = false; + DYNLISTENER(commitConstraint); DYNLISTENER(destroyMouse); -- cgit v1.2.3 From f461ea3105fbe7979a44d702bd9b2f7ee46a9441 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 11 Jul 2022 23:38:10 +0200 Subject: squish oversized subsurfaces while animating --- src/helpers/WLClasses.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 962c27b0..ed10b2fc 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -67,6 +67,9 @@ struct SRenderData { // for blurring bool blur = false; + + // for windows that animate poorly + bool squishOversized = false; }; struct SStringRuleNames { -- cgit v1.2.3 From 2f3b2db83d6fda5ade686157ebd6c27b3468d15b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 12 Jul 2022 09:49:56 +0200 Subject: fixed tiled popups going behind windows --- src/helpers/WLClasses.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index ed10b2fc..ce2d7248 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -72,6 +72,12 @@ struct SRenderData { bool squishOversized = false; }; +struct SExtensionFindingData { + Vector2D origin; + Vector2D vec; + wlr_surface** found; +}; + struct SStringRuleNames { std::string layout = ""; std::string model = ""; -- cgit v1.2.3