Bug 396678 - Problems with auto hide on scaled HiDPI display
Summary: Problems with auto hide on scaled HiDPI display
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-19 21:56 UTC by publicmail0123
Modified: 2018-07-20 13:33 UTC (History)
1 user (show)

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


Attachments
My Latte settings (725.33 KB, image/png)
2018-07-20 07:41 UTC, publicmail0123
Details
Latte dolphin active (2.55 MB, image/png)
2018-07-20 07:42 UTC, publicmail0123
Details
Latte dock no active windows (1.41 MB, image/png)
2018-07-20 07:46 UTC, publicmail0123
Details
Latte scaling turned off (2.56 MB, image/png)
2018-07-20 08:01 UTC, publicmail0123
Details
Latte debug scaled UHD (3.87 MB, image/png)
2018-07-20 11:27 UTC, publicmail0123
Details
Output of env in terminal (1.89 KB, text/plain)
2018-07-20 13:08 UTC, publicmail0123
Details

Note You need to log in before you can comment on or make changes to this bug.
Description publicmail0123 2018-07-19 21:56:31 UTC
When I set my screen resolution on 3840 x 2160 and I scale my display  (tested at 1.5 scaling and 2x scaling) Latte dock hides when an application window is active, even when it is not maximized. 

This happens when any form of auto / intelli hide is active. When I turn off display scaling (I set it to 1) Latte dock behaves normally.

The same goes for the dynamic background feature. It doesn't work when the display is scaled. Turn of the scaling at any resolution (tested at 1920x1080 and 3840 x 2160) and it works again.
Comment 1 Michail Vourlakos 2018-07-20 06:34:04 UTC
are you using wayland?
Comment 2 Michail Vourlakos 2018-07-20 06:36:57 UTC
(In reply to publicmail0123 from comment #0)
> When I set my screen resolution on 3840 x 2160 and I scale my display 
> (tested at 1.5 scaling and 2x scaling) Latte dock hides when an application
> window is active, even when it is not maximized. 
> 

please describe your workflow in detail in order to understand the issue... What is the visibility mode in question, what it should happen and what it doesnt happen...
Comment 3 publicmail0123 2018-07-20 07:39:41 UTC
Hi,

First some extra data:

Manjaro KDE
X11
Nvidia GTX970
aur/latte-dock-git 


Latte Dock 0.7.x does not have the mentioned problem
Display Resolution:3840x2160
KDE Display Scaling: 2x (font DPI 168)

Latte Dock settings:
Dodge active
Location : Bottom
Alignment:center

Description workflow:

Latte dock with no apps active -> the latte dock is visible. I have dolphin pinned to latte dock.
When I start dolphin and the dolphin window becomes active -> the latte dock hides. When I click the desktop so there are no windows wich have focus -> latte is visible again.

I included 3 screenshots, 1 with my latte settings, 1 with an application window active and 1 with no application window active.


I hope this clarifies things somewhat. Thanks for your time.

Regards
Comment 4 publicmail0123 2018-07-20 07:41:30 UTC
Created attachment 114017 [details]
My Latte settings

Latte dock settings
Comment 5 publicmail0123 2018-07-20 07:42:45 UTC
Created attachment 114018 [details]
Latte dolphin active

Latte is hiding when it should be visible
Comment 6 publicmail0123 2018-07-20 07:46:02 UTC
Created attachment 114019 [details]
Latte dock no active windows

Latte dock with no active application windows
Comment 7 publicmail0123 2018-07-20 08:01:56 UTC
Created attachment 114020 [details]
Latte scaling turned off

And a screenshot with display resolution 3840x2160, display scaling turned off, dolphin window active -> latte behaves normally (is visible).
Comment 8 Michail Vourlakos 2018-07-20 08:06:51 UTC
I tried to replicate but I cant... Is it possible to create a video? a screencast? and mention in which secs you notice the issue?
Comment 9 publicmail0123 2018-07-20 08:40:10 UTC
Hi Michail,

I created a destop recording which shows the issue. It is 31 MB. What is the best way to get it to you?
Comment 10 Michail Vourlakos 2018-07-20 10:46:48 UTC
Ok, I watched the issue but the thing is that I cant reproduce yet in order to track down whose fault is it...

1. Close Latte and run it from command prompt as: "latte-dock -d --with-window"

It will show you a debug window, please make a screenshot when you have enabled scaled HiDPI and one when HiDPI is not enabled

2. Close Latte and run it from command prompt as: "latte-dock -d --graphics" play a bit with it, do you notice anything strange in Latte visuals between scaled enabled and not?
Comment 11 publicmail0123 2018-07-20 11:27:08 UTC
Created attachment 114026 [details]
Latte debug scaled UHD

Interesting, when I scale the display it says the resolution is 1920x1080 which is not the case.
Comment 12 publicmail0123 2018-07-20 11:40:30 UTC
With latte-dock -d --graphics I observed no strange visuals. So it seems when the desktop is in scaled mode the reported screen resolution is 1920x1080 when it is in fact 3840x2160. Unscaled the resolution is correctly reported.
Comment 13 Michail Vourlakos 2018-07-20 12:19:41 UTC
(In reply to publicmail0123 from comment #12)
> With latte-dock -d --graphics I observed no strange visuals. So it seems
> when the desktop is in scaled mode the reported screen resolution is
> 1920x1080 when it is in fact 3840x2160. Unscaled the resolution is correctly
> reported.

that depends from how plasma is doing the scaling! what is your plasma version?
Comment 14 Michail Vourlakos 2018-07-20 12:22:52 UTC
some more info please!

1. If you use another scale parameter e.g. 1.7  what is the screen resolution indicated by Latte?

2. what is your qt version?
Comment 15 David Edmundson 2018-07-20 12:59:59 UTC
Please paste the output of "env" in a terminal please.
Comment 16 publicmail0123 2018-07-20 13:08:42 UTC
Created attachment 114028 [details]
Output of env in terminal
Comment 17 David Edmundson 2018-07-20 13:15:10 UTC
PLASMA_USE_QT_SCALING=1

This is not set by plasma and is a local modification.

Using Qt scaling in Plasma is deliberately off because of these sorts of issues.

As per the docs:

//on X, where we don't have compositor scaling, this generally works fine.
    //also there are bugs on older Qt, especially when it comes to fractional scaling
    //there's advantages to disabling, and (other than small context menu icons) few advantages in enabling

    //On wayland, it's different. Everything is simpler as all co-ordinates are in the same co-ordinate system
Comment 18 Michail Vourlakos 2018-07-20 13:22:29 UTC
(In reply to publicmail0123 from comment #16)
> Created attachment 114028 [details]
> Output of env in terminal

You have set manually in your system:
PLASMA_USE_QT_SCALING=1

as David mentioned, you must remove that line and re-login.
afterwards everything should be ok concerning Latte.

If you had issues with HiDPI in the past you probably hadnt set correctly your fonts dpi.

One tool I am using to indicate a proper dpi value is: https://www.sven.de/dpi/
Comment 19 publicmail0123 2018-07-20 13:32:18 UTC
Confirmed, that solved the problem. Thank you for your help.
Comment 20 Michail Vourlakos 2018-07-20 13:33:38 UTC
(In reply to publicmail0123 from comment #19)
> Confirmed, that solved the problem. Thank you for your help.

no prob. I hope you enjoy Plasma and Latte...