mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 09:25:59 +01:00
Merge pull request #230 from bazuin-32/main
Resolves #204. Enables numlock on startup when configured to do so
This commit is contained in:
commit
354e265128
2 changed files with 2 additions and 1 deletions
|
@ -87,6 +87,7 @@ extern "C" {
|
||||||
#include "../wlroots/include/wlr/render/wlr_texture.h"
|
#include "../wlroots/include/wlr/render/wlr_texture.h"
|
||||||
#include "../wlroots/include/wlr/types/wlr_pointer_constraints_v1.h"
|
#include "../wlroots/include/wlr/types/wlr_pointer_constraints_v1.h"
|
||||||
#include "../wlroots/include/wlr/types/wlr_relative_pointer_v1.h"
|
#include "../wlroots/include/wlr/types/wlr_relative_pointer_v1.h"
|
||||||
|
#include "../wlroots/include/wlr/interfaces/wlr_keyboard.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef class
|
#undef class
|
||||||
|
|
|
@ -309,7 +309,7 @@ void CInputManager::setKeyboardLayout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wlrMods.locked != 0) {
|
if (wlrMods.locked != 0) {
|
||||||
wlr_seat_keyboard_notify_modifiers(g_pCompositor->m_sSeat.seat, &wlrMods);
|
wlr_keyboard_notify_modifiers(g_pInputManager->m_pActiveKeyboard->keyboard->keyboard, 0, 0, wlrMods.locked, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
xkb_keymap_unref(KEYMAP);
|
xkb_keymap_unref(KEYMAP);
|
||||||
|
|
Loading…
Reference in a new issue