https://bugs.kde.org/show_bug.cgi?id=529164
Bug ID: 529164
Summary: Mouse button release not delivered to application when
released over the window's own decoration with
"Activate, pass click and raise on release"
Classification: Plasma
Product: kwin
Version First 6.8.3
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: input
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
DESCRIPTION
When the default setting "Activate, pass click and raise on release" is used as
policy, clicking into an inactive window that allows marking files with a
rubberband-selection, that selection rectangle will not be removed on mouse
release if the mouse release happens on the window's decoration (titlebar,
borders) instead of the client's area. Happens for example in Dolphin, but also
in my own applications which use listviews. I tracked it down to my client
never receiving the mouse up event in this case, but only `wl_pointer.leave`.
STEPS TO REPRODUCE
1. Have 2 windows open. Window A should be able to do drag-selection, for
example Dolphin, window B can be whatever. It must be another window B though,
the desktop background does not qualify, since it might not trigger a stacking
order change.
2. Make window B active.
3. Press and hold the left mouse button in an empty area of window A to create
a selection rectangle. Window A will become active by this.
4. Move mouse cursor over window A's own title bar.
5. Release left mouse button.
OBSERVED RESULT
The selection rectangle in window A does not get hidden. It stays visible until
clicking into the window again.
EXPECTED RESULT
The selection rectangle in window A should hide the moment the mouse button is
released, just like it does when releasing it over the client area.
SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.12.0
Graphics Platform: Wayland
ADDITIONAL INFORMATION
- Doesn't happen if window A is already activ
- Doesn't happen when "Activate, raise and pass click" is used
- Doesn't happen if mouse button is released over window A's client area
- What I suspect happens: Delayed raise -> stackingOrderChanged ->
InputDeviceHandler::update() still before ForwardInputFilter -> focus goes to
decoration, wl_pointer.leave to client, PointerInterface::sendButton() drops
release event (because there is no focused surface anymore)
- Possible related: bug 503669 (Maybe? Not sure.)
--
You are receiving this mail because:
You are watching all bug changes.