Bug 408926

Summary: BypassWindowManagerHint and Tasks dragging blocks mask restore
Product: [Unmaintained] lattedock Reporter: ryu.ketsueki
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: In this screenshot, I used Spectacle to take a screenshot of the mouse visibly above the button but it is not being highlighted neither the click working.
Screenshot of the issue with the debug window showing and green line for the perimeter
Layout config file as requested

Description ryu.ketsueki 2019-06-19 21:05:26 UTC
SUMMARY
Last build from git (compiled today Jun 19, 2019) brought the "Can be above fullscreen windows" option which works very nicely to show the dock above the Dashboard or any other fullscreen app if I need it. However, it prevents me from clicking on anything under the perimeter of the dock, even if it is not visually covering it

STEPS TO REPRODUCE
1. Check the "Can be above fullscreen windows" box on Settings
2. Try click anywhere with left or right button under the dock perimeter ("Get New Widgets..." button for example. It's unclickable)

OBSERVED RESULT
Impossibility to click anywhere under the dock perimeter

EXPECTED RESULT
Clickable areas to be working under the dock perimeter unless it is visibly covering it

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
openSUSE Tumbleweed 20190614
KDE Plasma Version: 5.16.1
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
I have KDE repositories enabled to get the latest of KDE Project as soon as they get released for users
Comment 1 Michail Vourlakos 2019-06-19 21:08:30 UTC
Show me a screenshot showing the probelem
Comment 2 Michail Vourlakos 2019-06-19 21:08:35 UTC
Show me a screenshot showing the probelem
Comment 3 ryu.ketsueki 2019-06-19 21:23:39 UTC
Created attachment 121016 [details]
In this screenshot, I used Spectacle to take a screenshot of the mouse visibly above the button but it is not being highlighted neither the click working.
Comment 4 ryu.ketsueki 2019-06-19 21:25:41 UTC
(In reply to Michail Vourlakos from comment #2)
> Show me a screenshot showing the probelem

I believe it was pretty self explanatory. But okay, there you go. The perimeter is what is shown whenever the dock settings window is open
Comment 5 Michail Vourlakos 2019-06-19 21:32:47 UTC
(In reply to ryu.ketsueki from comment #4)
> (In reply to Michail Vourlakos from comment #2)
> > Show me a screenshot showing the probelem
> 
> I believe it was pretty self explanatory. But okay, there you go. The
> perimeter is what is shown whenever the dock settings window is open

I cant reproduce this,

run latte from command line with:

"latte-dock -d --graphics --with-window"

show me a new screenshot that includes also the debug window when the problem appears
Comment 6 ryu.ketsueki 2019-06-19 21:47:29 UTC
Created attachment 121017 [details]
Screenshot of the issue with the debug window showing and green line for the perimeter

(In reply to Michail Vourlakos from comment #5)
> (In reply to ryu.ketsueki from comment #4)
> > (In reply to Michail Vourlakos from comment #2)
> > > Show me a screenshot showing the probelem
> > 
> > I believe it was pretty self explanatory. But okay, there you go. The
> > perimeter is what is shown whenever the dock settings window is open
> 
> I cant reproduce this,
> 
> run latte from command line with:
> 
> "latte-dock -d --graphics --with-window"
> 
> show me a new screenshot that includes also the debug window when the
> problem appears

Here. Here's more details about the issue. The perimeter seems to cover the entire bottom when my mouse hovers it as expected, but there are times that the perimeter don't shrink back, like in this screenshot. When it does, nothing under that green line perimeter is clickable anymore. Also, I apologize for not showing the debug window before. I didn't know about this process
Comment 7 Michail Vourlakos 2019-06-19 21:56:08 UTC
(In reply to ryu.ketsueki from comment #6)
> Created attachment 121017 [details]
> Screenshot of the issue with the debug window showing and green line for the
> perimeter
> 
> (In reply to Michail Vourlakos from comment #5)
> > (In reply to ryu.ketsueki from comment #4)
> > > (In reply to Michail Vourlakos from comment #2)
> > > > Show me a screenshot showing the probelem
> > > 
> > > I believe it was pretty self explanatory. But okay, there you go. The
> > > perimeter is what is shown whenever the dock settings window is open
> > 
> > I cant reproduce this,
> > 
> > run latte from command line with:
> > 
> > "latte-dock -d --graphics --with-window"
> > 
> > show me a new screenshot that includes also the debug window when the
> > problem appears
> 
> Here. Here's more details about the issue. The perimeter seems to cover the
> entire bottom when my mouse hovers it as expected, but there are times that
> the perimeter don't shrink back, like in this screenshot. When it does,
> nothing under that green line perimeter is clickable anymore. Also, I
> apologize for not showing the debug window before. I didn't know about this
> process

1. Problem is that animations only length remains to 1, instead to return to 0. Have you noticed when this occurs?
2. If you disable the above full screen option don't you have this problem? 
3. Please send me also your layout file to try to reproduce in my system
Comment 8 ryu.ketsueki 2019-06-19 22:06:34 UTC
Created attachment 121019 [details]
Layout config file as requested

(In reply to Michail Vourlakos from comment #7)
> (In reply to ryu.ketsueki from comment #6)
> > Created attachment 121017 [details]
> > Screenshot of the issue with the debug window showing and green line for the
> > perimeter
> > 
> > (In reply to Michail Vourlakos from comment #5)
> > > (In reply to ryu.ketsueki from comment #4)
> > > > (In reply to Michail Vourlakos from comment #2)
> > > > > Show me a screenshot showing the probelem
> > > > 
> > > > I believe it was pretty self explanatory. But okay, there you go. The
> > > > perimeter is what is shown whenever the dock settings window is open
> > > 
> > > I cant reproduce this,
> > > 
> > > run latte from command line with:
> > > 
> > > "latte-dock -d --graphics --with-window"
> > > 
> > > show me a new screenshot that includes also the debug window when the
> > > problem appears
> > 
> > Here. Here's more details about the issue. The perimeter seems to cover the
> > entire bottom when my mouse hovers it as expected, but there are times that
> > the perimeter don't shrink back, like in this screenshot. When it does,
> > nothing under that green line perimeter is clickable anymore. Also, I
> > apologize for not showing the debug window before. I didn't know about this
> > process
> 
> 1. Problem is that animations only length remains to 1, instead to return to
> 0. Have you noticed when this occurs?
> 2. If you disable the above full screen option don't you have this problem? 
> 3. Please send me also your layout file to try to reproduce in my system

A - 1: This occours after some time of use, so it's not right away when the box is checked. I was closing and restarting Latte, reorganizing icons at the tasks applet, opening the dashboard through the icon on the left and it's when it happens.
A - 2: No. It is only with the checkbox marked. It never happened otherwise.
A - 3: I'm attaching it along with the reply.
Comment 9 Michail Vourlakos 2019-06-20 07:10:09 UTC
Git commit 9c0e3f29922836a04dc4a1c1dad87d03c7357449 by Michail Vourlakos.
Committed on 20/06/2019 at 07:07.
Pushed by mvourlakos into branch 'master'.

do not trigger mask from invalid drags

--DragDropArea in containment should not activate
mask update (animationsNeedLength) if the dragging
is not valid for that DragDropArea. A good example
for this is when the user drags Tasks, in such case
the DragEnter signal is ignored and the DragLeave
may not reach to containment. In such case the
animationsNeedLength signal should NOT be sent

M  +7    -5    containment/package/contents/ui/DragDropArea.qml

https://commits.kde.org/latte-dock/9c0e3f29922836a04dc4a1c1dad87d03c7357449