mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-02 05:01:56 -07:00
fix kb stuff
This commit is contained in:
@@ -58,10 +58,10 @@ void CConfigManager::setDefaultVars() {
|
|||||||
configValues["animations:fadein"].intValue = 1;
|
configValues["animations:fadein"].intValue = 1;
|
||||||
|
|
||||||
configValues["input:kb_layout"].strValue = "en";
|
configValues["input:kb_layout"].strValue = "en";
|
||||||
configValues["input:kb_variant"].strValue = "";
|
configValues["input:kb_variant"].strValue = STRVAL_EMPTY;
|
||||||
configValues["input:kb_options"].strValue = "";
|
configValues["input:kb_options"].strValue = STRVAL_EMPTY;
|
||||||
configValues["input:kb_rules"].strValue = "";
|
configValues["input:kb_rules"].strValue = STRVAL_EMPTY;
|
||||||
configValues["input:kb_model"].strValue = "";
|
configValues["input:kb_model"].strValue = STRVAL_EMPTY;
|
||||||
configValues["input:repeat_rate"].intValue = 25;
|
configValues["input:repeat_rate"].intValue = 25;
|
||||||
configValues["input:repeat_delay"].intValue = 600;
|
configValues["input:repeat_delay"].intValue = 600;
|
||||||
configValues["input:touchpad:disable_while_typing"].intValue = 1;
|
configValues["input:touchpad:disable_while_typing"].intValue = 1;
|
||||||
@@ -579,7 +579,12 @@ float CConfigManager::getFloat(std::string v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string CConfigManager::getString(std::string v) {
|
std::string CConfigManager::getString(std::string v) {
|
||||||
return getConfigValueSafe(v).strValue;
|
const auto VAL = getConfigValueSafe(v).strValue;
|
||||||
|
|
||||||
|
if (VAL == STRVAL_EMPTY)
|
||||||
|
return "";
|
||||||
|
|
||||||
|
return VAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConfigManager::setInt(std::string v, int val) {
|
void CConfigManager::setInt(std::string v, int val) {
|
||||||
|
@@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
#include "defaultConfig.hpp"
|
#include "defaultConfig.hpp"
|
||||||
|
|
||||||
|
#define STRVAL_EMPTY "[[EMPTY]]"
|
||||||
|
|
||||||
struct SConfigValue {
|
struct SConfigValue {
|
||||||
int64_t intValue = -1;
|
int64_t intValue = -1;
|
||||||
float floatValue = -1;
|
float floatValue = -1;
|
||||||
|
@@ -371,7 +371,7 @@ CFramebuffer* CHyprOpenGLImpl::blurMainFramebufferWithDamage(float a, wlr_box* p
|
|||||||
const auto BLURSIZE = g_pConfigManager->getInt("decoration:blur_size");
|
const auto BLURSIZE = g_pConfigManager->getInt("decoration:blur_size");
|
||||||
const auto BLURPASSES = g_pConfigManager->getInt("decoration:blur_passes");
|
const auto BLURPASSES = g_pConfigManager->getInt("decoration:blur_passes");
|
||||||
|
|
||||||
const auto BLURRADIUS = BLURSIZE * BLURPASSES;
|
const auto BLURRADIUS = BLURSIZE * BLURPASSES * BLURPASSES;
|
||||||
|
|
||||||
// now, prep the damage, get the extended damage region
|
// now, prep the damage, get the extended damage region
|
||||||
pixman_region32_t damage;
|
pixman_region32_t damage;
|
||||||
|
Reference in New Issue
Block a user