Bug 449518 - kwin_wayland doesnt focus window when right clicking decoration/window border
Summary: kwin_wayland doesnt focus window when right clicking decoration/window border
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.90
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: junior-jobs, usability
Depends on:
Blocks:
 
Reported: 2022-02-02 19:32 UTC by Tom Englund
Modified: 2024-07-12 03:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Englund 2022-02-02 19:32:00 UTC
SUMMARY
***
focusing something else and then right clicking the window border/title/decoration the focus doesnt change to the window but the context menu do appear.


STEPS TO REPRODUCE
1. launch firefox as a xwayland client.
2. click the desktop or another window.
3. right click the border/title/decoration and the menu appears but firefox doesnt get focused.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Comment 1 Vlad Zahorodnii 2022-02-08 13:46:08 UTC
It most likely would require adding a new window action, e.g. activate + show user actions menu. However, it's worth analyzing whether there are potential benefits for not activating the window, if there aren't any, then it should be a one liner - call Workspace::activateClient().
Comment 2 Bug Janitor Service 2022-03-10 15:39:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2106
Comment 3 Vlad Zahorodnii 2024-06-12 10:13:22 UTC
Can you please reiterate the purpose or the usecase why the window should be activated?
Comment 4 Tom Englund 2024-06-12 11:04:40 UTC
(In reply to Vlad Zahorodnii from comment #3)
> Can you please reiterate the purpose or the usecase why the window should be
> activated?

2022-02-02 its some time ago but as i remember it it was just different to how X dealt with it, and felt like an odd thing to see the context menu appear but the window not focused. like i was interacting with an unfocused window? heh.
Comment 5 Bug Janitor Service 2024-06-27 03:47:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2024-07-12 03:47:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!