mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
fix: updated the special scale factor
This commit is contained in:
parent
7a83a8961d
commit
e5614bbeab
1 changed files with 2 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include <hyprland/src/Compositor.hpp>
|
#include <hyprland/src/Compositor.hpp>
|
||||||
#include <hyprland/src/plugins/PluginAPI.hpp>
|
#include <hyprland/src/plugins/PluginAPI.hpp>
|
||||||
|
#include <hyprlang.hpp>
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
|
|
||||||
#include "Hy3Layout.hpp"
|
#include "Hy3Layout.hpp"
|
||||||
|
@ -1539,8 +1540,7 @@ void Hy3Layout::applyNodeDataToWindow(Hy3Node* node, bool no_animation) {
|
||||||
|
|
||||||
if (g_pCompositor->isWorkspaceSpecial(window->m_iWorkspaceID)) {
|
if (g_pCompositor->isWorkspaceSpecial(window->m_iWorkspaceID)) {
|
||||||
// adjust for special workspaces
|
// adjust for special workspaces
|
||||||
static const auto* scalefactor
|
static const auto scalefactor = ConfigValue<Hyprlang::INT>("plugin:hy3:special_scale_factor");
|
||||||
= &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hy3:special_scale_factor")->floatValue;
|
|
||||||
calcPos = calcPos + (calcSize - calcSize * *scalefactor) / 2.f;
|
calcPos = calcPos + (calcSize - calcSize * *scalefactor) / 2.f;
|
||||||
calcSize = calcSize * *scalefactor;
|
calcSize = calcSize * *scalefactor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue