Skip to content

Commit

Permalink
wl_seat: send repeat data from current keyboard on bind
Browse files Browse the repository at this point in the history
ref #6515
  • Loading branch information
vaxerski committed Jun 15, 2024
1 parent 89f795d commit 908bec1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/protocols/core/Seat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,13 @@ CWLKeyboardResource::CWLKeyboardResource(SP<CWlKeyboard> resource_, SP<CWLSeatRe
resource->setRelease([this](CWlKeyboard* r) { PROTO::seat->destroyResource(this); });
resource->setOnDestroy([this](CWlKeyboard* r) { PROTO::seat->destroyResource(this); });

static auto REPEAT = CConfigValue<Hyprlang::INT>("input:repeat_rate");
static auto DELAY = CConfigValue<Hyprlang::INT>("input:repeat_delay");
if (!g_pSeatManager->keyboard) {
LOGM(ERR, "No keyboard on bound wl_keyboard??");
return;
}

sendKeymap(g_pSeatManager->keyboard.lock());
repeatInfo(*REPEAT, *DELAY);
repeatInfo(g_pSeatManager->keyboard->repeatRate, g_pSeatManager->keyboard->repeatDelay);
}

bool CWLKeyboardResource::good() {
Expand Down

0 comments on commit 908bec1

Please sign in to comment.