Bug 500098 - Window Action Maximize/restore behaves weirdly when using a touchpad since Plasma 6.3
Summary: Window Action Maximize/restore behaves weirdly when using a touchpad since Pl...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-window-management (show other bugs)
Version: 6.3.0
Platform: NixOS Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-14 22:24 UTC by David G.
Modified: 2025-02-19 11:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen Recording of holding the Meta Key and scrolling up with the touchpad (3.49 MB, video/webm)
2025-02-14 22:36 UTC, David G.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David G. 2025-02-14 22:24:06 UTC
SUMMARY
Since Plasma 6.3, the Window Action "Maximize/restore" behaves weirdly when using a touchpad, especially when trying to maximize.

STEPS TO REPRODUCE
1. Use Wayland
2. Use a touchpad
3. Under Settings -> Window Management -> Window Behavior -> Window Actions, set "Mouse wheel" to "Maximize/restore"
4. Hover over a window that is not maximized
5. Hold the Meta key and scroll up (or down if Natural Scrolling is enabled)
6. Stop scrolling and release the Meta key

OBSERVED RESULT
When scrolling, the window jumps quickly between maximized and unmaximized.
After stopping scrolling and releasing the Meta key, the window is either maximized or unmaximized.

EXPECTED RESULT
The window should be maximized and not change its state while scrolling.

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.05
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.2 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: Framework
Product Name: Laptop
System Version: AA

ADDITIONAL INFORMATION
- It worked in Plasma 6.2.5
- It only happens on Wayland, X11 works as expected
- It also happens in the latest KDE Neon Unstable Edition Live Image (Plasma 6.3.80)
- It also happens on another Laptop using the KDE Neon Live Image
- A similar thing can be observed when using Mouse Wheel actions other than "Maximize/restore"
- Similar to https://bugs.kde.org/show_bug.cgi?id=476047
Comment 1 David G. 2025-02-14 22:36:53 UTC
Created attachment 178385 [details]
Screen Recording of holding the Meta Key and scrolling up with the touchpad
Comment 2 Vlad Zahorodnii 2025-02-19 11:06:06 UTC
6.2 has never had code to handle touchpad scrolling. https://invent.kde.org/plasma/kwin/-/blob/v6.2.5/src/input.cpp?ref_type=tags#L1780