Bug 511901 - Git plugin: When list of git branches is launched by mouse, draw the list where the cursor is
Summary: Git plugin: When list of git branches is launched by mouse, draw the list whe...
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 25.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-10 09:01 UTC by tomashnyk
Modified: 2025-11-11 07:04 UTC (History)
1 user (show)

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


Attachments
button in question and where the menu could be drawn. (956.40 KB, image/png)
2025-11-10 09:01 UTC, tomashnyk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomashnyk 2025-11-10 09:01:45 UTC
Created attachment 186665 [details]
button in question and where the menu could be drawn.

Sort of a follow-up to https://bugs.kde.org/show_bug.cgi?id=511620

SUMMARY

STEPS TO REPRODUCE
1. Have terminal open
2. Click on the branch at the bottom bar (highlighted on screenshot).

OBSERVED RESULT
The list opens high up. When you move a mouse to use it, it disappears, because you go over terminal, which changes focus, leading to the list closing.

EXPECTED RESULT
It either opens under the mouse, like a context menu, so it can be used with the mouse, or does not close upon hovering over the terminal.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3
Kernel Version: 6.17.6-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i9-9880H CPU @ 2.30GHz
Memory: 64 GiB of RAM (62.5 GiB usable)
Graphics Processor 1: Intel® UHD Graphics 630
Graphics Processor 2: NVIDIA GeForce GTX 1650 with Max-Q Design

ADDITIONAL INFORMATION
I actually only when filling the bug noticed this is not a general behaviour, but is caused by the terminal, which is technically a different app. I guess this might be an intended design then (or just hard to change), but it caused me a lot of frustration before I figured it out, so I guess I might not be the only one.

Hovever, drawing the menu with the branches so that it obscures the terminal would probably solve this, while also being more logical and time saving as it is not far from the cursor. On the screenshot, the green rectangle places where the menu could be drawn.

The red arrow shows the movement that closes the list of the branches.

Another option (or adition) would be to use mouse wheel to change the listing? But t hen it is not clear how to activate the chosen branch without using a keyboard.
Comment 1 Waqar Ahmed 2025-11-10 13:12:53 UTC
the position of the menu won't be changed, because that would make it inconsistent with other similar popups and also because that would be more to maintain which I don't want to do.

> When you move a mouse to use it, it disappears, because you go over terminal, which changes focus, leading to the list closing.

The actual problem is this. Can you record a video? Perhaps there is something in your Konsole profile settings which triggers this focus stealing bug.
Comment 2 tomashnyk 2025-11-10 13:26:34 UTC
Oh, I use focus follows mouse Kwin/Plasma setting, so I think that will be it.
Comment 3 Waqar Ahmed 2025-11-11 07:04:53 UTC
Okay, then I guess there isn't much we can do about this. Thanks for the investigation.