mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 23:06:00 +01:00
input: fix crash with text-input-v1 (#5234)
This commit is contained in:
parent
0d91f82d83
commit
2d5fda4810
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue