Bug 414620 - Dock raises up on each focus of a modal window/menu
Summary: Dock raises up on each focus of a modal window/menu
Status: RESOLVED INTENTIONAL
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.9.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-28 15:55 UTC by Jazz
Modified: 2019-11-30 16:33 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jazz 2019-11-28 15:55:24 UTC
I've noticed an old issue re-appears again: each time I open a modal window, Latte Docs will raise up.

STEPS TO REPRODUCE
1. Open a KCalc, or Application Launcher
2. Latte Dock shows up

OBSERVED RESULT
Verify the "Raise on Activity change" in Dock Settings, it should NOT be checked. The Latte dock raises up for each focus on a modal menu/window.


EXPECTED RESULT
The Latte dock should NOT raise up by placing a focus on a modal menu/window.

SOFTWARE/OS VERSIONS
KDE Plasma: v5.17.3
KDE Framework: v5.64.0
Qt: v5.13.2
Kernel: 4.19.85-1-MANJARO


ADDITIONAL INFORMATION
Memory: 16GB DDR4
Comment 1 Michail Vourlakos 2019-11-28 18:25:48 UTC
I suppose you are referring to Dodge Active visibility... right?

modal windows are those that are children windows, meaning in Libreoffice writer you open a Save dialog...

KCalc is not a modal window and for application launcher I have no idea what you are referring as faulty behavior.. For each one case set full details how to reproduce in order for me to check out also if this is a bug or not...

The libreoffice case works just fine...
Comment 2 Jazz 2019-11-28 19:47:05 UTC
I opened Kate editor. Latte Dock disappears, which is ok.
Then I open Kcalc and place a focus on it, the Latte Dock goes up, which should NOT happen: https://i.imgur.com/bo4MIUW.png

Then I just move my mouse and place a focus on Kate, the Latte Dock goes down again: https://i.imgur.com/7qobspC.png

I close the KCalc window and click at the Application Launch widget, the Latte Dock goes up, which I believe is NOT what it should do: https://i.imgur.com/SgOLZXc.png

For "Save as" dialogue windows the Latte Dock does not appear, which is ok: https://i.imgur.com/zC4yGnQ.png
Comment 3 Michail Vourlakos 2019-11-28 19:50:37 UTC
1. For KCalc of course and it should go up. If you don't want to go up choose Dodge All Windows and NOT Dodge Active
2. For Application Launcher same thing applies with 1
Comment 4 Jazz 2019-11-28 20:22:37 UTC
That resolves this issue. It's a bit confusing though, since I would expect this mode to be the default, but ok... glad that it's resolved.
Comment 5 Michail Vourlakos 2019-11-28 20:30:16 UTC
All docks are setting Dodge Active as default visibility mode.
Comment 6 Jazz 2019-11-29 20:43:28 UTC
BTW, yesterday I switched to "Dodge all windows", but Latte Dock reverts that setting to "Dodge Active" upon each system boot.
Comment 7 Michail Vourlakos 2019-11-30 01:53:41 UTC
Is your layout locked to read-only? Right click dock, Layouts, Configure
Comment 8 Jazz 2019-11-30 12:01:54 UTC
Nope, before any change, I unlocked the dock first, clicked Ok, switched to "Dodge All Windows", clicked "Close", then went back to lock the Default Layout, then restarted Manjaro.

Surprisingly, after I did it a few more times, it worked as it should. It's not consistent, so I'm not sure if you could replicate this issue on your end, but it definitely seems odd. Maybe it's related with the following issue I've noticed:

Within your Dock Settings untick "Show title tooltips" and set "Zoom on hover" to 0% to kill the parallax effect and then click Close. Now go to Dock Settings again and just switch to Panel, then go back to Dock mode. Check your previous settings "Show title tooltips" and "Zoom on hover". On my end, that particular action has killed my previous custom settings and forcefully set them back to the defaults, which I (as a user) would not expect.
Comment 9 Michail Vourlakos 2019-11-30 12:33:30 UTC
Changing between Dock/Panel mode overwrites specific custom settings in order to provide the default dock experience and the default panel experience. This is no way currently to have other custom settings for dock mode and other settings for panel mode.
Comment 10 Jazz 2019-11-30 12:50:35 UTC
I believe this is not user friendly and quite confusing. If users want that default dock experience, they should use the Default button instead, way more straight forward. As a temporary fix, I would propose at least bringing a warning popup right before switching to different modes e.g. "The dock settings have been modified. Switching to panel mode will reset your previous changes to the default values! [Cancel] [Ok]".

Currently I am forced to remove the tick at "Show title tooltips" and a parallax effect as a workaround, since it's impossible to use the Notes widget with those settings enabled, so users in the same situation are probably not interested to a forceful/silent "default dock experience" for obvious reasons.
Comment 11 Michail Vourlakos 2019-11-30 13:28:40 UTC
Feel free to submit code for review that improves the user experience.

You can also try to lock the Notes widget from animating in parabolic effect, you can do so from applet tooltip in editmode
Comment 12 Jazz 2019-11-30 13:46:19 UTC
I'm sorry, I dodn't understand how to lock the Notes widget from animating in parabolic effect? Is unlocking the layout equal to editmode? If so, the applet tooltip is exactly the same as when the layout is locked: https://i.imgur.com/xTdZbgy.png
Comment 13 Michail Vourlakos 2019-11-30 15:08:38 UTC
(In reply to Jazz from comment #12)
> I'm sorry, I dodn't understand how to lock the Notes widget from animating
> in parabolic effect? Is unlocking the layout equal to editmode? If so, the
> applet tooltip is exactly the same as when the layout is locked:
> https://i.imgur.com/xTdZbgy.png

Edit Mode is considered in Latte v0.9:

Right click Dock -> Dock Settings -> (enable) Rearrange and Configure applets
Comment 14 Jazz 2019-11-30 15:16:02 UTC
It worked, thanks! Btw, I've just found something else, whilst trying to check my version of lattedock:

$ latte-dock --version
Icon theme "elementary" not found.
Icon theme "deepin" not found.
lattedock 0.9.4

Why such "not found" notifications? Is it a bug?
Comment 15 Michail Vourlakos 2019-11-30 15:22:16 UTC
(In reply to Jazz from comment #14)
> It worked, thanks! Btw, I've just found something else, whilst trying to
> check my version of lattedock:
> 
> $ latte-dock --version
> Icon theme "elementary" not found.
> Icon theme "deepin" not found.
> lattedock 0.9.4
> 
> Why such "not found" notifications? Is it a bug?

nope, it is from plasma libraries with no influence at all, you can just ignore them
Comment 16 Jazz 2019-11-30 16:33:23 UTC
You're right, that was not related to lattedock. But just to round it up, if anybody else faces the same issue and want to keep your journal clean, go to ~/.local/share/icons/[your_theme_folder], edit the index.theme file, check the line that starts with "Inherits" and remove unneeded themes from it, in my case:

# Inherits=breeze,elementary,gnome,deepin
Inherits=breeze,gnome

Thanks, Michail, keep up with good work!