mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-14 11:35:46 -07:00
input: fix crash with text-input-v1 (#5234)
This commit is contained in:
@@ -71,9 +71,10 @@ void CTextInput::onEnabled(wlr_surface* surfV1) {
|
|||||||
// v1 only, map surface to PTI
|
// v1 only, map surface to PTI
|
||||||
if (!isV3()) {
|
if (!isV3()) {
|
||||||
wlr_surface* pSurface = surfV1;
|
wlr_surface* pSurface = surfV1;
|
||||||
setFocusedSurface(pSurface);
|
|
||||||
if (g_pCompositor->m_pLastFocus == pSurface)
|
if (g_pCompositor->m_pLastFocus == pSurface)
|
||||||
enter(pSurface);
|
enter(pSurface);
|
||||||
|
else
|
||||||
|
setFocusedSurface(pSurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_input_method_v2_send_activate(g_pInputManager->m_sIMERelay.m_pWLRIME);
|
wlr_input_method_v2_send_activate(g_pInputManager->m_sIMERelay.m_pWLRIME);
|
||||||
|
Reference in New Issue
Block a user