mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 14:45:59 +01:00
internal: fix -Wsign-compare and -Wunused-variable warnings
This commit is contained in:
parent
ac3edec14b
commit
79791c9ed4
2 changed files with 2 additions and 3 deletions
|
@ -1309,9 +1309,9 @@ void CKeybindManager::moveCursorToCorner(std::string arg) {
|
||||||
|
|
||||||
void CKeybindManager::moveCursor(std::string args) {
|
void CKeybindManager::moveCursor(std::string args) {
|
||||||
std::string x_str, y_str;
|
std::string x_str, y_str;
|
||||||
int x, y, i;
|
int x, y;
|
||||||
|
|
||||||
i = args.find_first_of(' ');
|
size_t i = args.find_first_of(' ');
|
||||||
if (i == std::string::npos) {
|
if (i == std::string::npos) {
|
||||||
Debug::log(ERR, "moveCursor, takes 2 arguments.");
|
Debug::log(ERR, "moveCursor, takes 2 arguments.");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1058,7 +1058,6 @@ void CHyprOpenGLImpl::renderBorder(wlr_box* box, const CGradientValueData& grad,
|
||||||
if (!pixman_region32_not_empty(m_RenderData.pDamage) || (m_pCurrentWindow && m_pCurrentWindow->m_sAdditionalConfigData.forceNoBorder))
|
if (!pixman_region32_not_empty(m_RenderData.pDamage) || (m_pCurrentWindow && m_pCurrentWindow->m_sAdditionalConfigData.forceNoBorder))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
static auto* const PBORDERSIZE = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue;
|
|
||||||
static auto* const PMULTISAMPLE = &g_pConfigManager->getConfigValuePtr("decoration:multisample_edges")->intValue;
|
static auto* const PMULTISAMPLE = &g_pConfigManager->getConfigValuePtr("decoration:multisample_edges")->intValue;
|
||||||
|
|
||||||
wlr_box newBox = *box;
|
wlr_box newBox = *box;
|
||||||
|
|
Loading…
Reference in a new issue