Skip to content

WSLg + WLToolkit: mouse cursor stays as pointer (not I-beam) in editor after lock/unlock or wake from sleep #1403

@mohammed-aslam

Description

@mohammed-aslam

Windows build number:

26200.7462

Your Distribution version:

Ubuntu 24.04

Your WSL versions:

Environment:

  • WSL v2.7.0.0
  • WSLg v1.0.71
  • MSRDC v1.2.6676
  • IntelliJ IDEA 2025.1
  • Windows 11
  • JetBrains Runtime: JBR 21 (bundled)
  • VM option enabled: -Dawt.toolkit.name=WLToolkit

Problem:
After either locking/unlocking the Windows screen (in some cases) OR waking the system from sleep, the mouse cursor inside the IntelliJ editor no longer switches to the text (I-beam) cursor. It remains the default pointer arrow when hovering over editor text.

Important details:

  • Keyboard input works normally
  • Caret is visible and blinking
  • Only the mouse cursor shape is wrong
  • This happens consistently after lock/unlock
  • Restarting the IntelliJ process immediately fixes the issue
  • No in-session workaround works (resize, fullscreen toggle, focus change, caret settings, etc.)

Steps to reproduce:

  1. Start IntelliJ under WSLg with -Dawt.toolkit.name=WLToolkit
  2. Open any project and focus an editor
  3. Either:
    a) Lock Windows (Win+L) and unlock after screen turns black
    OR
    b) Put the system to sleep and wake it
  4. Hover mouse over editor text

WSL logs:

pulseaudio.log
stderr.log
weston.log

WSL dumps:

No response

Expected behavior:

Mouse cursor switches to text (I-beam) cursor in editor.

Actual behavior:

Mouse cursor remains a pointer arrow until the IDE is restarted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions