Bug 441902

Summary: Splitting the view resizes whole window in a dual monitor setup
Product: [Applications] konsole Reporter: whites11
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR    
Version: 21.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of the resized window
attachment-562-0.html
attachment-7317-0.html

Description whites11 2021-09-02 09:03:50 UTC
Created attachment 141239 [details]
Screenshot of the resized window

SUMMARY

When I split the view in Konsole, the whole window gets resized incorrectly.

STEPS TO REPRODUCE
1. Open Konsole and make it occupy the right end side of the screen by hitting the "windows key"+"right arrow" combination.
2. Split the view top/bottom or right/left, behaviour is the same

OBSERVED RESULT

The window will not be full height anymore, but there will be a margin between  the bottom of the window and the bottom of the screen

EXPECTED RESULT

Window to keep same size as before splitting the view

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Arch linux latest version
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

- This does NOT happen if the window is fully maximized.
- This is happening on a dual display setup, only on the secondary display. I have one display with 2 panels, one at the top of the screen, one at the bottom of the screen. This bug only happens on the secondary display where there are no panels.
- Using x.org
Comment 1 whites11 2021-09-07 06:59:16 UTC
I just noticed the same exact behaviour happens with Dolphin as well so I assume it's a general bug affecting window management rather than a Konsole specific one.
Comment 2 whites11 2021-09-07 09:24:35 UTC
Moved to kwin because it's clearly a general problem rather than a konsole specific one.
Comment 3 whites11 2021-10-19 15:38:55 UTC
Still happening in 5.23.0
Comment 4 Nate Graham 2021-11-27 17:11:17 UTC
Not a KWin issue; these "split the view" features are app-specific and are not hooking into any KWin functionality. Moving back to Konsole. So Dolphin will need a separate bug report for it.

I cannot reproduce the issue with current git master on Wayland. It's possible this was fixed by https://invent.kde.org/utilities/konsole/-/commit/2ab70959ccc90cb5b69e025130d0093f54236624, which will be in Konsole 21.12. That's getting released in a little under two weeks, on December 9th. Can you check once it's released to see if the bug is fixed? Thanks!
Comment 5 whites11 2021-11-27 17:20:57 UTC
> That's getting released in a little under two weeks, on December 9th. Can
> you check once it's released to see if the bug is fixed? Thanks!

Will do for sure, thanks a lot Nathan!
Comment 6 whites11 2021-12-11 16:27:05 UTC
Unfortunately this is still happening with konsole 21.12.0
Comment 7 whites11 2021-12-18 10:27:59 UTC
For what it's worth, this is an X11 problem only. Not happening in wayland
Comment 8 Bug Janitor Service 2022-01-02 04:34:49 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 9 whites11 2022-01-02 06:55:54 UTC
As I mentioned in my previous comments, this is still happening to me.
Comment 10 tcanabrava 2022-01-02 11:36:09 UTC
Created attachment 145041 [details]
attachment-562-0.html

I don’t have a dual monitor setup, I won’t be able to fix it. Would you try
to discover what’s happening code wise? Even a few debug lines on the
affected code helps.

Code is probably on ViewSplitter.cpp



Le dim. 2 janv. 2022 à 06:56, <bugzilla_noreply@kde.org> a écrit :

> https://bugs.kde.org/show_bug.cgi?id=441902
>
> whites11@gmail.com changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|NEEDSINFO                   |REPORTED
>          Resolution|WAITINGFORINFO              |---
>
> --- Comment #9 from whites11@gmail.com ---
> As I mentioned in my previous comments, this is still happening to me.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 11 whites11 2022-01-03 15:50:57 UTC
(In reply to tcanabrava from comment #10)
> Created attachment 145041 [details]
> attachment-562-0.html
> 
> I don’t have a dual monitor setup, I won’t be able to fix it. Would you try
> to discover what’s happening code wise? Even a few debug lines on the
> affected code helps.
> 
> Code is probably on ViewSplitter.cpp


I don't have the toolchain set up. I will try to follow documentation to build konsole. Let's see how far I can get with the time I can afford to invest.
Comment 12 whites11 2022-01-03 19:23:12 UTC
(In reply to whites11 from comment #11)
> (In reply to tcanabrava from comment #10)
> > Created attachment 145041 [details]
> > attachment-562-0.html
> > 
> > I don’t have a dual monitor setup, I won’t be able to fix it. Would you try
> > to discover what’s happening code wise? Even a few debug lines on the
> > affected code helps.
> > 
> > Code is probably on ViewSplitter.cpp
> 
> 
> I don't have the toolchain set up. I will try to follow documentation to
> build konsole. Let's see how far I can get with the time I can afford to
> invest.

ok I built latest konsole from sources. Will try to dig into the source code and troubleshoot what I can
Comment 13 tcanabrava 2022-01-03 19:32:29 UTC
Created attachment 145088 [details]
attachment-7317-0.html

Thank you very much, this really helps us

Le lun. 3 janv. 2022 à 19:23, <bugzilla_noreply@kde.org> a écrit :

> https://bugs.kde.org/show_bug.cgi?id=441902
>
> --- Comment #12 from whites11@gmail.com ---
> (In reply to whites11 from comment #11)
> > (In reply to tcanabrava from comment #10)
> > > Created attachment 145041 [details]
> > > attachment-562-0.html
> > >
> > > I don’t have a dual monitor setup, I won’t be able to fix it. Would
> you try
> > > to discover what’s happening code wise? Even a few debug lines on the
> > > affected code helps.
> > >
> > > Code is probably on ViewSplitter.cpp
> >
> >
> > I don't have the toolchain set up. I will try to follow documentation to
> > build konsole. Let's see how far I can get with the time I can afford to
> > invest.
>
> ok I built latest konsole from sources. Will try to dig into the source
> code
> and troubleshoot what I can
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 14 whites11 2022-01-04 09:01:27 UTC
I had a look at the code in ViewSplitter.cpp and I can't find anything related to the window size.
Also, the same bug happens when I click on the "New Tab" button or if I hide the menu bar.
This makes me fell this is something lower lever like a QT bug maybe.
Any ideas where to look at?