Bug 499494

Summary: When a search is performed with two screens one above the other, kdevelop invades the other screen.
Product: [Applications] kdevelop Reporter: Jaime Torres <jtamate>
Component: UI: generalAssignee: kdevelop-bugs-null
Status: RESOLVED MOVED    
Severity: normal CC: igorkuo
Priority: NOR    
Version First Reported In: 6.1.241200   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jaime Torres 2025-02-04 09:07:58 UTC
SUMMARY
In a system with two screens, one placed above the other, and kdevelop shown maximized in the upper screen.
When a search is performed, or a click in where this is used is performed, kdevelop changes its size and the lower part invades the lower screen.


STEPS TO REPRODUCE
1. Open Kdevelop maximized in the upper screen.
2. Ctrl+F to search for anything. When then search starts again from the beginning, the minimum vertical size changes and invades the lower screen.
3. The only way to restore its original size is not maximize (if I move the window, it invades the lower screen again) and then maximize.

OBSERVED RESULT
The minimum vertical size is wrongly calculated and invades the lower screen.

EXPECTED RESULT
It behaves like it is run with only one screen.

SOFTWARE/OS VERSIONS
Operating System: Kali GNU/Linux 2024.4
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.7.2
Kernel Version: 6.11.2-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 Igor Kushnir 2025-02-04 13:42:48 UTC
Can you try to reproduce this bug in Kate?
Comment 2 Jaime Torres 2025-02-04 16:59:40 UTC
No, so far only kdevelop shows this behaviour.
But I have to do something else (still unknown) before it happens. 
I'm trying to reproduce it and I can't following the steps. 
But it happens to me quite often. I'll reopen when I know exactly the steps to reproduce it.
Comment 3 Igor Kushnir 2025-02-04 17:29:45 UTC
There are two other bugs related to the Ctrl+F/Ctrl+R search: Bug 488164 and Bug 468703. I was able to reproduce the first of the bugs in Kate and moved it to frameworks-ktexteditor. Though Kate developers cannot reproduce the bug for some reason. So if you manage to reproduce this bug in Kate, please change the product to frameworks-ktexteditor as well.
Comment 4 Jaime Torres 2025-02-05 09:02:51 UTC
The bug is easily reproduced opening a file with long lines when a panel is shown.
https://bugs.kde.org/show_bug.cgi?id=499538