Bug 401391 - Window detection function does not work
Summary: Window detection function does not work
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: 5.17.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-25 10:22 UTC by Andrew Shark
Modified: 2024-03-04 19:42 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Compare how it works in window rules and in shortcuts settings (2.16 MB, video/mp4)
2018-11-25 10:22 UTC, Andrew Shark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Shark 2018-11-25 10:22:58 UTC
Created attachment 116498 [details]
Compare how it works in window rules and in shortcuts settings

SUMMARY
In Custom Shortcuts / Window action you can define window trigger. It that window there is Autodetect button, but it does not work correctly. See attached video.

STEPS TO REPRODUCE
1. Go to System Settings/Shortcuts/Custom Shortcuts/
2. Add New -> Window action -> Send kyyboard input
3. Go to Trigger or Action tab, press New button 
4. A window will appear, where you can define window properties which you want
5. There is Autodetect button there. Press it. Mouse cursor shape becomes an aim.

OBSERVED RESULT
When you move your mouse outside system settings window, mouse cursor becomes usual and you cannot detect window properties by clicking to some window.
When you move mouse back over system settings, it again becomes an aim, but you cannot detect properties of system settings window either.
You cannot cancel detection by pressing escape. The only way you can get out of this mode is closing system settings using keyboard or close button of its indow.

EXPECTED RESULT
Mouse cursor should stay aim all time until you press escape or click at any point. Then window properties window shoud appear.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.14.3
Qt Version: 5.11.2
KDE Frameworks Version: 5.52.0

ADDITIONAL INFORMATION
There is such function in System Settings/Window Management/Window Rules/. In a rule editing window there is a button called Detect Window Properties. It works as expected.
Comment 1 alekksander 2020-01-04 14:45:39 UTC
this bug is still existing with exact same behavior as precisely described by author; checked under:

SOFTWARE/OS VERSIONS
Operating System: KDE neon 
KDE Plasma Version: 5.17.4
Qt Version: 5.13.2
KDE Frameworks Version: 5.65.0
Comment 2 Ismael Asensio 2020-10-25 13:40:03 UTC
This was mistriaged. It belongs to Custom Shortcuts KCM (khotkeys), where there is an Autodetect button, and indeed still suffers from this bug.
Comment 3 Wael CHLOUFTOU 2022-01-29 20:11:20 UTC
Confirming the bug:

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed KDE
KDE Plasma Version: 5.23.4
Qt Version: 5.15.2
KDE Frameworks Version: 5.90.0
Comment 4 Wael CHLOUFTOU 2022-01-29 20:35:55 UTC
Both X11 and Wayland are affected.
Comment 5 bicycletheme 2022-08-04 21:40:03 UTC
Confirming the bug on 5.24.6
Comment 6 Nate Graham 2024-03-04 19:42:01 UTC
As announced in https://pointieststick.com/2023/07/26/what-we-plan-to-remove-in-plasma-6/ and https://community.kde.org/Plasma/Plasma_6#Removals, I'm afraid KHotKeys has reached end-of-life in Plasma 6. Accordingly, all bug reports and feature requests for it must be closed now.

Most of what KHotKeys could do can already be done with the newer KGlobalAccel system in Plasma 6. A few features such as mouse gestures and triggering conditions based on changes to window states are not yet implemented in the new system. These will be added in the future if and when resources materialize for them, and/or when a kind soul submits patches to implement them! :) Meanwhile, the 3rd-party "Mouse Actions" app (https://github.com/jersou/mouse-actions) may be usable for implementing your own mouse gestures again.

Thanks for your understanding, everyone.