CachyOS / CachyOS/distribution

[Bug]: Wayland: KWin loses click focus after returning from Tablet Mode (Lenovo IdeaPad Flex 5)

Open
#446 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
27
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Kernel

Linux 7.0.5-2-cachyos

### Desktop Environment / Window Manager

KDE Plasma

### CPU

Intel i5 1335U

### GPU / Driver

Intel Iris Xe

### Description

Hello, I encountered a bug where my mouse cursor can move, but completely loses the ability to click anything after folding my laptop into tablet mode and returning it to normal mode.

The hardware sensor is detected correctly by the kernel (dmesg shows Lenovo Yoga Tablet Mode Control switch), but KWin seems to fail at restoring the click focus. Returning from tablet mode also throws some DRM/Atomic modeset Permission denied errors in the journal.

Currently, restarting the laptop or restarting plasma-kwin_wayland.service is the only way to temporarily fix the issue.

System Information:

Host: Lenovo IdeaPad Flex 5 14IRU8

OS: CachyOS x86_64

Kernel: Linux 7.0.5-2-cachyos

DE: KDE Plasma 6.6.4

WM: KWin (Wayland)

Logs:
A complete hardware report, dmesg, and journalctl (showing the KWin errors during transition) have been uploaded here:
https://paste.cachyos.org/a74e45e.log

### Steps to Reproduce

1. Log in to KDE Plasma (Wayland session).
2. Fold the laptop (Lenovo IdeaPad Flex 5) into tablet mode.
3. Unfold the laptop back to normal laptop mode.
4. Move the cursor using the touchpad and attempt to click on anything.

### Expected Behavior

The mouse cursor should retain click focus, and touchpad clicks should register normally after returning from tablet mode.

### Actual Behavior

The mouse cursor can still be moved, but all click inputs are completely ignored. It becomes impossible to interact with any UI elements using the touchpad or mouse clicks. Restarting the system or restarting `plasma-kwin_wayland.service` is required to restore click functionality.

### Logs / Error Messages

The hardware sensor is correctly detected by the kernel, meaning the event is fired, but KWin Wayland silently fails to restore the click focus.

Relevant dmesg log:
[ 5.138921] input: Lenovo Yoga Tablet Mode Control switch as /devices/platform/PNP0C14:05/wmi_bus/wmi_bus-PNP0C14:05/06129D99-6083-4164-81AD-F092F9D773A6-16/input/input14

There are no KWin crash logs in journalctl during the transition, confirming this is a silent focus management bug rather than a compositor crash.
https://paste.cachyos.org/a74e45e.log

### Additional Context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.