fix IME grab on multiple open native inputs

This commit is contained in:
vaxerski 2022-08-22 18:40:38 +02:00
parent 575bfa40e5
commit 6565c31dbf

View file

@ -259,9 +259,6 @@ SIMEKbGrab* CInputMethodRelay::getIMEKeyboardGrab(SKeyboard* pKeyboard) {
if (VIRTKB && (wl_resource_get_client(VIRTKB->resource) == wl_resource_get_client(m_pKeyboardGrab->pWlrKbGrab->resource)))
return nullptr;
if (wlr_keyboard_from_input_device(pKeyboard->keyboard) != m_pKeyboardGrab->pKeyboard)
return nullptr;
return m_pKeyboardGrab.get();
}