Bug 417150 - Left click behavior
Summary: Left click behavior
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Unmaintained
Component: plasmoid (other bugs)
Version First Reported In: 0.9.8.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-04 15:15 UTC by Luis F H Serrano
Modified: 2020-02-06 06:25 UTC (History)
0 users

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


Attachments
Black box above Konsole group on latte dock (281.30 KB, image/png)
2020-02-04 15:15 UTC, Luis F H Serrano
Details
black box even with compositor on (801.06 KB, image/png)
2020-02-04 23:47 UTC, Luis F H Serrano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luis F H Serrano 2020-02-04 15:15:25 UTC
Created attachment 125664 [details]
Black box above Konsole group on latte dock

SUMMARY
The left click is behavior is not working properly on Fedora 31.

On the repo available releases (0.9.1*) windows are not unminimized when left clicking them on the plasmoid, instead a preview is show and you have to then click the preview. New instance creation (with any shortcut) works normally though. I tried changing where the open window was assigned to on the Latte settings but it didn't fix it.

On the 0.9.8.1 version, which I build from source, the previous bug is fixed for single instances, but if I try to left click a group, it displays a black bar above it and does nothing.

STEPS TO REPRODUCE
1. Install on a new fedora 31
2. Open more than one window of the same application
3. Try to click the group on the plasmoid app on a dock

OBSERVED RESULT
Group doesn't open neither show options. Black box appears above task on plasmoid.

EXPECTED RESULT
Bring group up front, maximize it, show previews to select, or something else.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 31 KDE Plasma spin
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2
Kernel Version: 5.4.15

ADDITIONAL INFORMATION
Compositon backend: OpenGL 3.1
GPUs: Laptop with integrated Intel GPU and dedicated Nvidia GPU
Comment 1 Michail Vourlakos 2020-02-04 15:23:02 UTC
Enable your compositing mode from plasma systemsettings
Comment 2 Luis F H Serrano 2020-02-04 23:47:06 UTC
Created attachment 125678 [details]
black box even with compositor on
Comment 3 Luis F H Serrano 2020-02-04 23:48:11 UTC
(In reply to Michail Vourlakos from comment #1)
> Enable your compositing mode from plasma systemsettings

The composition enabled back some transparency effects, but it didn't change the blackbox. I tried other backends but the result is the same.

I enabled "preview on mouse hover" too on the latte settings and the same problem occurs on the regular thumbnail.
Comment 4 Michail Vourlakos 2020-02-05 13:46:33 UTC
I think your installation is broken.

1. Close Latte and run it from terminal with "latte-dock -d" you will probably see some debug errors
2. If you dont care about the tooltips try the following: Right click dock -> Dock settings -> Advanced mode -> Tasks -> Actions -> Left Click -> [choose] "Present Windows"
Comment 5 Luis F H Serrano 2020-02-05 14:18:14 UTC
(In reply to Michail Vourlakos from comment #4)
> I think your installation is broken.
> 
> 1. Close Latte and run it from terminal with "latte-dock -d" you will
> probably see some debug errors
> 2. If you dont care about the tooltips try the following: Right click dock
> -> Dock settings -> Advanced mode -> Tasks -> Actions -> Left Click ->
> [choose] "Present Windows"

I didn't find any error, but there are many warnings. The same warnings repeat a lot so I will list an entry of each to not be super long:

1. at startup, a bunch of invalid metadata warnings like this one:
"/usr/lib64/qt5/plugins/kcm_sdsummary.so" or similar warnings for many plugins.

2. 
[warning 11:03:16.995995] - trying to show an empty dialog

3. 
[warning 11:03:17.015015] - file:///usr/share/plasma/plasmoids/org.kde.plasma.systemloadviewer/contents/ui/SystemLoadViewer.qml:251: TypeError: Cannot read property 'value' of undefined

4. Some warnings like this one:
[warning 11:03:17.744744] - Entry is not valid "kontact.desktop" QSharedPointer(0x509d940).

5. 
[warning 11:03:17.807807] - Model size of -2147483647 is less than 

6. many more value undefined warnings:
[warning 11:03:17.809809] - file:///usr/share/plasma/plasmoids/org.kde.plasma.systemloadviewer/contents/ui/SystemLoadViewer.qml:251: TypeError: Cannot read property 'value' of undefined

7. 
[warning 11:03:19.465465] - Both point size and pixel size set. Using pixel size.

8. A bunch of this one:
[warning 11:03:21.192192] - file:///usr/share/plasma/plasmoids/org.kde.plasma.pkupdates/contents/ui/Full.qml:164:13: QML CheckBox: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
[warning 11:11:34.792792] - file:///usr/share/plasma/plasmoids/org.kde.plasma.pkupdates/contents/ui/Full.qml:219:9: QML Button: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead

9.
[warning 11:11:34.847847] - file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:74:5: Unable to assign [undefined] to QObject*
[warning 11:11:34.899899] - file:///usr/lib64/qt5/qml/org/kde/latte/GlowPoint.qml:285:13: Unable to assign [undefined] to double

10.
[warning 11:11:34.936936] - file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/applet/CompactApplet.qml:61: TypeError: Cannot read property 'Layout' of null
[warning 11:11:34.936936] - file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/applet/CompactApplet.qml:79: TypeError: Cannot read property 'Layout' of null

11.
[warning 11:11:34.964964] - QQmlExpression: Attempted to evaluate an expression in an invalid context

12. When I enable preview (I don't use them, just reporting):
[warning 11:14:15.992992] - "" doesn't have any WindowType, assuming as NET::Normal


If I hover over the buttons to make the preview show up no warnings appear, but the black box is there.
Comment 6 Michail Vourlakos 2020-02-05 15:35:45 UTC
I don't find something relevant...

Suggestion 2 didn't help?
Comment 7 Luis F H Serrano 2020-02-05 16:37:40 UTC
(In reply to Michail Vourlakos from comment #6)
> I don't find something relevant...
> 
> Suggestion 2 didn't help?

It didn't unfortunately. The group thumbnail/tooltip is still that box. The tooltips that are just text work normally though.

I will try rebuilding and installing it later today, maybe another version. I had actually restored a backup that had latte working normally before, but I think the config files being for possibly different versions might have messed it up. I tried deleting .config/latte and .config/lattedockrc before but I forgot about the template file.
Comment 8 Luis F H Serrano 2020-02-06 01:33:38 UTC
(In reply to Michail Vourlakos from comment #6)
> I don't find something relevant...
> 
> Suggestion 2 didn't help?

So I uninstalled every single dependency that I had installed and did everything again one by one. I removed manually both the .config and .local latte directories and the lattedockrc file. I uninstalled using your uninstall.sh.

Instead of using the old github branch (didn't realise it was an older version as I was following this FAQ, which is still pointing to a github git clone: https://userbase.kde.org/LatteDock/FAQ), I installed the latest master on phabricator. The installation went smoothly and now all the features are working as intended! :)
Comment 9 Michail Vourlakos 2020-02-06 06:25:12 UTC
Please point me exactly the broken link in order to update it...