Bug 405104 - FEATURE WISH : Add an option(s) to avoid unexpected reavelation of the dock
Summary: FEATURE WISH : Add an option(s) to avoid unexpected reavelation of the dock
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: 0.8.7
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-05 08:58 UTC by mathojojo
Modified: 2019-03-08 18:34 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mathojojo 2019-03-05 08:58:44 UTC
SUMMARY

It would be so nice if an option could be selected in settings to add a mouse click to the pointer detection.

OBSERVED RESULT

In my example, my dock is placed to the left border and I have Firefox opened, and the "Previous" button is really near of the border. So, if I do not take care, most of the time, when I want to click the previous button, I will just reveal the Dock. And the Dock will overlap the Previous Button, and I can't click it.

On a long internet session, it will fast be irritating (and I don't think we should take care to glide the mouse pointer with a surgical precision near the borders to avoid an unexpected revelation of the Dock :)  )

It's an example, but i'm sure there are many other with other apps or needs.

EXPECTED RESULT

A solution should be found to avoid it.

 1 -> It could be an option to add a mouse click (right, middle or left), or even a mouse scroll (up or down) when the mouse pointer is detected.

 2 -> It could be an option to force the mouse pointer beyond the dock trigger (like if we would like to move the pointer outside the screen)

 3 -> It could be an option to go 2 times on the dock trigger (with a max delay between). So we should just have to move the mouse pointer on the trigger (at this moment, the dock knows we may want him to be revealed, but not sure, so he's just waiting...), leave the trigger area, and come back to the trigger area (at this moment, the dock is revealed).

 4 -> Other better ideas are welcome.

Of course, the better might be to let the user choose between thous 3 ways to show the dock.

What do you think about it ?


Thanks
Comment 1 Michail Vourlakos 2019-03-05 22:19:01 UTC
(In reply to mathojojo from comment #0)
> 
> What do you think about it ?
> 
> 


currently this is solved by the Show Timer which is a delay that is used in order to delay the dock showing. Unfortunately for v0.8.x that feature is broken by default but you can fix it by disabling "KWin edges activation..." through Tweaks page. In Latte master version this issue has been fixed and the Show Timer works at all cases.
Comment 2 mathojojo 2019-03-06 19:50:18 UTC
Thank you for the answer.

I actually have the 0.8.7 version of Latte Dock. And Active Dodge in the Visibility part of the behaviour Tab. In this tab I already saw the Show and Hidden Timers.

But in my case, the Show timer only affects the dock visibility when the app (having the focus) is not in full screen anymore. It has no effect on the dock showing time when I move the mouse to the edge (the dock instantly appears even if I set the show timer at 5000 ms).
This is maybe the broken feature you are telling about.

So in the Tweak tab, I unchecked the "Activate Kwin edge after hiding" as you mentioned.
But doing so, I now don't have edge detection for my dock,and nothing happens when I move my mouse to the trigger area.

There is maybe something I didn't understand in your explanations ??
Comment 3 Michail Vourlakos 2019-03-06 19:55:32 UTC
If you want to be even above full screen windows the disable in Tweaks, Behave as a normal dock window
Comment 4 mathojojo 2019-03-06 20:18:32 UTC
No, it's not my problem. Sorry I 'm probably not clear. I will make examples with firefox again :)

Latte Dock is set with show timer at 5000ms.

Step 1 : I'm on my desktop, so Latte dock is visible at the left side.

Step 2 : I launch firefox in full screen. The dock disappears -> up to now, everything is working as expected.

Step 3 : Always with firefox in full screen, I want to show the Dock. So I move my mouse to the left edge, and the Dock appears instantly -> I expected it to show after a delay of 5000ms. This behavior was not expected.

Step 4 : I close firefox, so I'm on my desktop again. The dock appears after a delay of 5000ms -> As expected.


I hope it is more clear now :)

So I thought thous unexpected behaviors were because of the broken feature as you told in your answer, and I disabled the "Activate Kwin edge after Hiding" in the tweak page.

And again :

Step 1 : I'm on the desktop, the Dock is visible -> Expected
Step 2 : I launch Firefox in full screen, the dock disappears -> Expected
Step 3 : Firefox always in full screen, I want to show the dock. So I move the mouse to the left, but nothing happens. There is no trigger anymore to show the dock, because I disabled "Kwin edge activation after hiding". The only way to access the dock, is to minimize Firefox, or close it. 

Let me know if I'm doing something wrong.

Thank you again anyway
Comment 5 Michail Vourlakos 2019-03-06 20:30:07 UTC
If you move the Dock to the bottom you get same results?

Lower your delay to 200ms same problem?
Comment 6 Michail Vourlakos 2019-03-06 20:31:23 UTC
BTW, 5000ms means your mouse must remain 5secs at left edge
Comment 7 mathojojo 2019-03-07 16:49:51 UTC
No, if I move the dock to the bottom, the show delay is working well with the kwin edge activation disabled.

Setting the delay to 200ms or 2000ms or 5000ms doesn't change anything.

But I tried again to place the dock to the left side with 2000ms and "kwin edge activation" disabled, and I notice that it is working too if the pointer of the mouse is not placed against the edge but one pixel away from the edge.

Maybe a problem with plasma built-in edge borders detection ??
Comment 8 mathojojo 2019-03-07 17:19:03 UTC
The problem seems to affect the dock only in the left position. I tried bottom, top, right.
Placed on the left border of the screen, I tried to change the alignment (Top, center, bottom and Justify), and the problem is always there. I need to place the mouse pointer at 1 pixel from the edge.

Something I notice :
Settings : "kwin edge activation" disable, and dock to the left.

When I move the mouse to the left edge and then maintain it at this position-> The dock appears 1 second, then disappears, and definitely reappears.

Let's take a closer look to the mouse pointer:

I move the mouse pointer to the left position to trigger the dock and maintain it (X position = 0px)
The dock appears (pointer X position still = 0px)
After 1 second, the dock disappears (pointer X position still = 0px)
The dock reappears (pointer X position = 1px, without any move from me)

It let me really think that there is something very strange happening at the left edge.

If that can help you...
Comment 9 mathojojo 2019-03-07 17:20:56 UTC
Sorry, I did an error, the previous behavior was with "Kwin Edge activation" ENABLED
Comment 10 mathojojo 2019-03-07 17:59:35 UTC
https://www.youtube.com/watch?v=mP7J04QhiJ8

I posted this video, so that you can see this behavior.
Comment 12 mathojojo 2019-03-08 18:34:43 UTC
Super!! This strange behavior is now the past :)

Just to know, what is the goal of the "Kwin Edge Activation after hiding" option in the tweak page ?

What should be the behavior differences when I enable/disable it ?