mirror of https://github.com/hyprwm/Hyprland
Fix compiler warnig comparing signed and unsigned integers.
This commit is contained in:
parent
44da575ea8
commit
f825b87c2a
|
@ -425,7 +425,7 @@ bool CKeybindManager::handleVT(xkb_keysym_t keysym) {
|
||||||
|
|
||||||
const auto PSESSION = wlr_backend_get_session(g_pCompositor->m_sWLRBackend);
|
const auto PSESSION = wlr_backend_get_session(g_pCompositor->m_sWLRBackend);
|
||||||
if (PSESSION) {
|
if (PSESSION) {
|
||||||
const int TTY = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
const unsigned int TTY = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
||||||
|
|
||||||
if (PSESSION->vtnr == TTY)
|
if (PSESSION->vtnr == TTY)
|
||||||
return false; // don't do anything.
|
return false; // don't do anything.
|
||||||
|
|
Loading…
Reference in New Issue