Skip to content

Commit 131d122

Browse files
committed
Fix IME support merge issue
1 parent c3ef386 commit 131d122

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/wl_window.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,18 +1700,19 @@ static void pointerHandleButton(void* userData,
17001700
{
17011701
if (!_glfw.wl.pointerSurface)
17021702
return;
1703-
1704-
// On weston, pressing the title bar will cause leave event and never emit
1705-
// enter event even though back to content area by pressing mouse button
1706-
// just after it. So activate it here explicitly.
1707-
activateTextInputV1(window);
17081703

17091704
_glfw.wl.serial = serial;
17101705

17111706
const int button = buttonID - BTN_LEFT;
17121707
const int action = (state == WL_POINTER_BUTTON_STATE_PRESSED);
17131708

17141709
_GLFWwindow* window = wl_surface_get_user_data(_glfw.wl.pointerSurface);
1710+
1711+
// On weston, pressing the title bar will cause leave event and never emit
1712+
// enter event even though back to content area by pressing mouse button
1713+
// just after it. So activate it here explicitly.
1714+
activateTextInputV1(window);
1715+
17151716
if (window->wl.fallback.decorations)
17161717
{
17171718
if (action == GLFW_PRESS)

0 commit comments

Comments
 (0)