Bug 278863 - In Low Screen Heights (768 px) Konsole always opens as full-height (even after resized).
Summary: In Low Screen Heights (768 px) Konsole always opens as full-height (even afte...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.6.4
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-30 16:16 UTC by Shlomi Fish
Modified: 2012-01-29 20:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A tentative patch that fixes the problem in an ad-hoc way. (423 bytes, patch)
2011-07-30 16:17 UTC, Shlomi Fish
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shlomi Fish 2011-07-30 16:16:27 UTC
Version:           2.6.4 (using KDE 4.7.0) 
OS:                Linux

KDE 4's Konsole always starts in full-screen height, even after I explicitly
resize it. I want it to be only 24-lines high, but it is ignored. I tried
deleting the files under ~/.kde4/share/config/session/ , tried pkill konsole,
and tried in a new UNIX user account - the bug is always there.

I have a screen whose height is only 768 lines, and my default font may be pretty large. It happens even though the "Save window size and position on exit" is toggled on for the current profile as it is by default.

See:

https://qa.mandriva.com/show_bug.cgi?id=63814

After a long investigation I found that:

1. KWin assigns the NET::MaxVert flag to the window, which causes it to open at
maximal height (= vertical size).

2. This happens because the height of the window is requested to be too large
(769 pixels whereas I only have 768.).

3. What this patch does is tentatively workaround the problem by requesting a
smaller terminal size (80*20 instead of 80*40), but it's really a kludge.

Regards,

-- Shlomi Fish

Reproducible: Always

Steps to Reproduce:
1. Create a new UNIX user account.
2. Login from the virtual console.
3. Start KDE using startx -- :1
4. Invoke a konsole.
5. Resize it to be 10 lines high or so.
6. Close it.
7. Start a new konsole.

Actual Results:  
Result: the new konsole is the height of the screen.

Expected Results:  
The New Konsole should be resized properly.

I'm on Mandriva Linux Cooker on an x86-64 laptop with a 768 pixels high screen.
Comment 1 Shlomi Fish 2011-07-30 16:17:39 UTC
Created attachment 62346 [details]
A tentative patch that fixes the problem in an ad-hoc way.

What this patch does is reduce the initial height of konsole which then allows it to be resized properly. Do not apply - it's very ad-hoc.
Comment 2 Dima Ryazanov 2011-09-28 19:51:47 UTC
I'm seeing a possibly related bug. I have two monitors with resolutions 1920x1080 and 2560x1600. Not only does Konsole become maximized vertically when I launch it, but every time I move it to the other monitor, it resizes itself to the maximum height. This makes it really annoying.

Let me know if I should file a separate bug.
Comment 3 Dima Ryazanov 2011-10-05 03:30:49 UTC
Wow, System Settings does that too, so it's not just Konsole.
Comment 4 Jekyll Wu 2012-01-27 05:49:07 UTC
I just checked the reported problem again using KDE SC 4.8. It seems OK now. Could the reporter check it again using KDE SC 4.8?
  

(In reply to comment #2 and #3)
> I'm seeing a possibly related bug. I have two monitors with resolutions
> 1920x1080 and 2560x1600. Not only does Konsole become maximized vertically when
> I launch it, but every time I move it to the other monitor, it resizes itself
> to the maximum height. This makes it really annoying.
> 
> Let me know if I should file a separate bug.

The second problem sounds the same as bug 291809, and that problem seems also fixed in KDE SC 4.8 according the feedback of the reporter.
Comment 5 Shlomi Fish 2012-01-27 08:00:40 UTC
Hi,

(In reply to comment #4)
> I just checked the reported problem again using KDE SC 4.8. It seems OK now.
> Could the reporter check it again using KDE SC 4.8?
> 

I'll do it after my laptop finishes updating to KDE SC 4.8 (as it is running Mageia Linux Cauldron).

Regards,

-- Shlomi Fish
Comment 6 Shlomi Fish 2012-01-29 20:35:07 UTC
(In reply to comment #5)
> Hi,
> 
> (In reply to comment #4)
> > I just checked the reported problem again using KDE SC 4.8. It seems OK now.
> > Could the reporter check it again using KDE SC 4.8?
> > 
> 
> I'll do it after my laptop finishes updating to KDE SC 4.8 (as it is running
> Mageia Linux Cauldron).
> 

Yes, seems fine now. After being resized, Konsole opens in the last height. Resolving as fixed.

> Regards,
> 
> -- Shlomi Fish