windowrules: allow incrementing window props (#9566)
This commit is contained in:
parent
8b7b169043
commit
ffd6cf65e4
21 changed files with 191 additions and 102 deletions
15
src/config/ConfigValue.cpp
Normal file
15
src/config/ConfigValue.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "ConfigValue.hpp"
|
||||
#include "ConfigManager.hpp"
|
||||
#include "../macros.hpp"
|
||||
|
||||
void local__configValuePopulate(void* const** p, const std::string& val) {
|
||||
const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val);
|
||||
|
||||
*p = PVHYPRLANG->getDataStaticPtr();
|
||||
}
|
||||
|
||||
std::type_index local__configValueTypeIdx(const std::string& val) {
|
||||
const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val);
|
||||
const auto ANY = PVHYPRLANG->getValue();
|
||||
return std::type_index(ANY.type());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue