Bug 408412 - Fitt's Law broken for applets in the corners of Latte Panels
Summary: Fitt's Law broken for applets in the corners of Latte Panels
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-07 09:43 UTC by leftcrane
Modified: 2019-06-08 08:57 UTC (History)
0 users

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


Attachments
layout (18.07 KB, text/plain)
2019-06-07 11:02 UTC, leftcrane
Details
side (20.87 KB, text/plain)
2019-06-08 07:37 UTC, leftcrane
Details
screen (315.34 KB, image/png)
2019-06-08 07:45 UTC, leftcrane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leftcrane 2019-06-07 09:43:11 UTC
Latte dock's handling of screen edges is highly dependent on configuration. 

For example, if the dock is on the left, you can't engage it by moving your mouse all the way to the edge. But if it's on the right, you can. Similarly an applet like window buttons won't respond to a mouse that's all the way to the edge if you have a zoomable dock in the same panel. Sometimes, the window buttons applet won't respond to edge click randomly, but will respond if you restart the dock and kwin.

Can anything be done to assure that certain widgets reliably respond to edge mouse events. So if you move your mouse to an edge/corner, can you get assurance that the widgets (at least yours) respond to mouse input?
Comment 1 Michail Vourlakos 2019-06-07 10:09:54 UTC
You must lock them,

what you are requesting is called Fitt's Law and Latte follows it.

Please send me your layout to check out what breaks for you
Comment 2 leftcrane 2019-06-07 11:02:27 UTC
Created attachment 120653 [details]
layout

added. 

neither the (righthand) dock nor the window buttons are engaged when you move the mouse to the right. Window buttons doesn't work on the left hand side either, but dock does.

To reproduce, move your mouse all the way to the right edge and try to register a click.
Comment 3 Michail Vourlakos 2019-06-07 11:33:12 UTC
(In reply to leftcrane from comment #2)
> Created attachment 120653 [details]
> layout
> 

1. For window buttons I see the issue but I need to investigate whos fault is it, applet or Latte


2. I dont have a multi-screen environment currently so you need to adjust your panel/docks to be onPrimary screen and send afterwards again your layout to check out any further issues
Comment 4 Michail Vourlakos 2019-06-07 15:26:40 UTC
Git commit 3f88341bcbbab0d88dd1f14c288096856b01c3b4 by Michail Vourlakos.
Committed on 07/06/2019 at 15:19.
Pushed by mvourlakos into branch 'master'.

restore Fitt's Law for edge Applets

--when the Latte View is in Justify mode
and and an applet is touching the screen edge
then for that applet any margins from the
Screen edge should be removed. That way
the Fitt's Law is obeyed. What is going to
happen for the margins of these applets with
their neighbour applets will be considered
in the future.

M  +7    -3    containment/package/contents/ui/applet/ItemWrapper.qml
M  +6    -4    containment/package/contents/ui/applet/indicator/Loader.qml

https://commits.kde.org/latte-dock/3f88341bcbbab0d88dd1f14c288096856b01c3b4
Comment 5 leftcrane 2019-06-08 02:44:35 UTC
It's fixed for the window buttons, but the dock still doesn't respond to edge mousing when positioned on the right.
Comment 6 Michail Vourlakos 2019-06-08 05:58:02 UTC
(In reply to leftcrane from comment #5)
> It's fixed for the window buttons, but the dock still doesn't respond to
> edge mousing when positioned on the right.

Send a layout demonstrating that specific issue
Comment 7 leftcrane 2019-06-08 07:20:41 UTC
It's the same layout I sent you. Tested on Kubuntu 19.04
Comment 8 Michail Vourlakos 2019-06-08 07:34:28 UTC
(In reply to leftcrane from comment #7)
> It's the same layout I sent you. Tested on Kubuntu 19.04

The layout you sent me does not have a right dock, set your right dock to be onprimary and send again
Comment 9 leftcrane 2019-06-08 07:37:28 UTC
Created attachment 120685 [details]
side

added
Comment 10 Michail Vourlakos 2019-06-08 07:40:39 UTC
(In reply to leftcrane from comment #9)
> Created attachment 120685 [details]
> side
> 
> added

show me a screenshot from your entire system and where is the in-question dock please
Comment 11 Michail Vourlakos 2019-06-08 07:42:18 UTC
(In reply to leftcrane from comment #9)
> Created attachment 120685 [details]
> side
> 
> added

2. There is NOT RIGHT dock in your layout

are you in a Right To Left system?
Comment 12 leftcrane 2019-06-08 07:45:03 UTC
Created attachment 120686 [details]
screen
Comment 13 Michail Vourlakos 2019-06-08 07:50:06 UTC
(In reply to leftcrane from comment #12)
> Created attachment 120686 [details]
> screen

so for which Dock are we talking about?
Comment 14 leftcrane 2019-06-08 07:52:20 UTC
Oh yeah I am very sorry. I mean LEFT dock.

So if it's RIGHT, TOP, BOTTOM - edge mousing in dock area WORKS.

If it's LEFT - edge mousing in dock area does NOT WORK.
Comment 15 Michail Vourlakos 2019-06-08 07:57:19 UTC
(In reply to leftcrane from comment #14)
> Oh yeah I am very sorry. I mean LEFT dock.
> 
> So if it's RIGHT, TOP, BOTTOM - edge mousing in dock area WORKS.
> 
> If it's LEFT - edge mousing in dock area does NOT WORK.

you mean this? https://userbase.kde.org/LatteDock/FAQ#My_left_dock_behaves_strangely_from_Plasma_5.10_onwards.2C_how_can_I_fix_this.3F
Comment 16 leftcrane 2019-06-08 08:57:01 UTC
Correct. Fixed. Somehow I had a swipe action activated. I had to disable it directly in kwinrc cause system settings won't save the config change change for whatever reason.