Bug 388217 - Yakuake height incorrect if desktop scaling is enabled
Summary: Yakuake height incorrect if desktop scaling is enabled
Status: RESOLVED DUPLICATE of bug 389448
Alias: None
Product: yakuake
Classification: Applications
Component: general (show other bugs)
Version: 3.0.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-25 15:46 UTC by Lastique
Modified: 2020-03-01 03:59 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Konsole window with two undrawn lines (50.37 KB, image/png)
2017-12-25 16:21 UTC, Lastique
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lastique 2017-12-25 15:46:38 UTC
When desktop scaling ratio is greater than 1 (System Settings -> Display and Monitor -> Scale Display), the height of the Konsole window becomes incorrect. For example, if I set scaling ratio to 1.7, the Konsole window opens down for less than a half of the screen, despite that in Konsole settings the height is set to 80% of the screen.

I've also noticed that when scaling is enabled, Konsole window is sometimes incorrectly drawn and misses a line or two in the middle.
Comment 1 Lastique 2017-12-25 16:21:55 UTC
Created attachment 109514 [details]
Konsole window with two undrawn lines

Konsole window with two undrawn lines

Here's a screenshot of Konsole with two undrawn horizontal lines (the lines show bits of desktop background behind Konsole window).

I've also noticed that similar undrawn lines appear under each line of the console as its contents change. For example, one can start mc (Midnight Commander) and try navigating filesystem; the corrupted lines will appear as mc modifies the console contents.
Comment 2 Nate Graham 2017-12-26 15:43:38 UTC
The line issue is https://bugs.kde.org/show_bug.cgi?id=373232.

Let's focus on the height issue here. Are you saying that with a 1.7 scale factor, the window isn't drawn 1.x7 as big as it would be with a 1.0 scale factor?

Detailed Steps To Reproduce would be helpful here. See https://bugs.kde.org/page.cgi?id=bug-writing.html
Comment 3 Lastique 2017-12-26 16:52:23 UTC
> The line issue is https://bugs.kde.org/show_bug.cgi?id=373232.

Ok, thanks.

> Are you saying that with a 1.7 scale factor, the window isn't drawn 1.x7 as big as it would be with a 1.0 scale factor?

Yes, exactly.

> Detailed Steps To Reproduce would be helpful here.

The bug description basically has them. More formally:

1. Set display scale ratio to 1. Reboot, if necessary, so that the ratio is in effect.
2. In Konsole settings, set window height to 80%. Try opening Konsole and notice that the window height is as expected (i.e. takes more than the half of the screen height).
3. Set display scale ratio to 1.7 and reboot.
4. Try opening Konsole window now. This time the window height is much smaller - noticeably less than half the screen height.
5. You can try changing Konsole window height, but in any case the height of the window will be much less than expected.
Comment 4 Lastique 2017-12-26 17:54:36 UTC
That should be not Konsole but Yakuake, sorry for the confusion.
Comment 5 George Moutsopoulos 2019-05-28 11:41:05 UTC
QT_SCREEN_SCALE_FACTORS=1; yakuake
comment https://bugs.kde.org/show_bug.cgi?id=389448#c9
Comment 6 Lastique 2019-05-28 21:28:15 UTC
While that works as a workaround, it keeps Yakuake UI elements unscaled.
Comment 7 Andrew Hou 2020-03-01 03:59:08 UTC
Marking this as a duplicate to consolidate all these issues

*** This bug has been marked as a duplicate of bug 389448 ***