Bug 421981

Summary: Latte dock multi-monitor screen space reservation
Product: [Plasma] lattedock Reporter: Alexandre Pereira <pereira.alex>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: image four
image one
image two
image three
gentoo settings files ( works on gentoo )
gentoo copied to opensuse and not working
latte-dock systemtray

Description Alexandre Pereira 2020-05-23 14:45:46 UTC
SUMMARY
Hi,

When using latte-dock on x11 mode ( weird, but just tested on wayland and doesn't seem to happen ), doesn't reserve the screen space correctly.

See images for better description, as its hard to explain:

Image one is "normal mode".
Image two is "settings of left dock".
Image three is "settings of right dock".
Image four is with windows maximized on each screen.


Notice the settings of "Visibility".
It seems that "Always visible" of the right dock is being applied on the left monitor ( not on right where it should be ) and "Dodge all windows" is being applied on the right monitor ( not on the left where it should be )


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alexandre Pereira 2020-05-23 14:47:04 UTC
Created attachment 128720 [details]
image four

don't know why but other images are 10M each, doing converting now and uploading them
Comment 2 Alexandre Pereira 2020-05-23 14:48:39 UTC
Created attachment 128721 [details]
image one
Comment 3 Alexandre Pereira 2020-05-23 14:48:54 UTC
Created attachment 128722 [details]
image two
Comment 4 Alexandre Pereira 2020-05-23 14:49:07 UTC
Created attachment 128723 [details]
image three
Comment 5 Michail Vourlakos 2020-05-23 16:12:13 UTC
works just fine in my system, it occured once but I can not manage to reproduce afterwards...

1. I need exactly steps to reproduce
2. I you change the AlwaysVisible visibility mode to other visibility mode and back again to AlwaysVisible is it fixed?
3. I you change your AlwaysVisible panel to left edge and back to right edge is it fixed?
Comment 6 Alexandre Pereira 2020-05-23 16:42:06 UTC
> 1. I need exactly steps to reproduce
Just adding two vertical panels on dual monitors, one "always visible" and other "dodge all windows"

> 2. I you change the AlwaysVisible visibility mode to other visibility mode and back again to AlwaysVisible is it fixed?
Yes, if I change the settings, it is fixed. All i need to do is go into the panel on the right monitor, toggle to another visibility mode and then back again to "always visible" and everything is fixed ( including the one on the left )

3. I you change your AlwaysVisible panel to left edge and back to right edge is it fixed?
Yes, if I change the right panel to the left side of the same monitor, everything is fixed ( including panel on left and on right )

note: they are "docks", not panels...
Comment 7 Alexandre Pereira 2020-05-23 16:45:14 UTC
another thing:

If i change the right side panel to "left side ( this already fixed it ) and then back to right side" everything is fixed.

But if I change the left side panel to right and then back to left, everything stays the same.
Comment 8 Alexandre Pereira 2020-05-23 16:51:05 UTC
OK, 

so ... i tried a new layout and I can't seem to reproduce it also.
So must be something from my layout settings file, which works on stable but not on git version.
I will try to discover in the settings file what is creating the problem as post the info here if interesting.

If ok with you, can I close as RESOLVED ?
Comment 9 Michail Vourlakos 2020-05-23 17:09:59 UTC
(In reply to Alexandre Pereira from comment #8)
> OK, 
> 
> so ... i tried a new layout and I can't seem to reproduce it also.
> So must be something from my layout settings file, which works on stable but
> not on git version.
> I will try to discover in the settings file what is creating the problem as
> post the info here if interesting.
> 
> If ok with you, can I close as RESOLVED ?

1. Please play with this in case you can find which setting is creating the issue and you can update the bug report title and send new information if you find what to blame, if you dont find what is producing this you can tag it RESOLVED
2. You can also send me the layout file that is creating the issue
3. I have just sent a commit that might is fixing this, you can test it out.
Comment 10 Michail Vourlakos 2020-05-23 17:10:18 UTC
waiting user feedback
Comment 11 Alexandre Pereira 2020-05-23 17:27:23 UTC
well, in opensuse I have to wait for the packages to be rebuild, so i changed to my gentoo system.

I just compiled the git package, and seems to be working on gentoo ( with gentoo settings file )

I will copy the gentoo settings file ( which works ) to opensuse and see if it works or not.
Comment 12 Alexandre Pereira 2020-05-23 17:36:01 UTC
finally some luck at reproducibiliting:

uploading two settings files: gentoo.layout.latte and opensuse.layout.latte

the gentoo.layout.latte was the gentoo settings which is working in the gentoo system with kde plasma 5.18.5 and latte-dock git latest ( should have you fix already ).

opensuse.layout.latte settings file, is gentoo.layout.latte but after running on opensuse system with kde plasma git packages and latte-dock trdmi git packages ( should not have your fix yet ).


So .... on gentoo the settings files works, on opensuse ( being the same, copied from gentoo ) it doesn't.
Comment 13 Alexandre Pereira 2020-05-23 17:36:21 UTC
Created attachment 128733 [details]
gentoo settings files ( works on gentoo )
Comment 14 Alexandre Pereira 2020-05-23 17:36:39 UTC
Created attachment 128734 [details]
gentoo copied to opensuse and not working
Comment 15 Alexandre Pereira 2020-05-23 17:38:25 UTC
so either is from being kde plasma stable vs git packages or is the fix which trdmi should update latte-dock sometime soon.
Comment 16 Michail Vourlakos 2020-05-23 17:38:58 UTC
(In reply to Alexandre Pereira from comment #14)
> Created attachment 128734 [details]
> gentoo copied to opensuse and not working

OK let's wait for opensuse trmdi update in order to tell respond if after the update is fixed.
Comment 17 Michail Vourlakos 2020-05-23 17:41:06 UTC
https://build.opensuse.org/package/show/home:trmdi/latte-dock

details for trmdi package
Comment 18 Alexandre Pereira 2020-05-23 18:18:18 UTC
ok, i compiled it locally on opensuse.

and tested again to copy the gentoo settings file to opensuse and now opensuse is working also ! ( so the settings file which didn't work on opensuse, does now work on opensuse with the latest git latte-dock )

I think its safe to mark it as resolved, but if anything appears I will comment here again.
Comment 19 Michail Vourlakos 2020-05-23 18:42:45 UTC
nice
Comment 20 Alexandre Pereira 2020-05-23 18:51:04 UTC
there is a new issue though, although I am not sure if caused by this:

see the new image attached, the systray is "small and invisible".
in the image, "Bandeja do Sistema" is portuguese for the systemtray. That space where the mouse cross is, is systemtray.
Comment 21 Alexandre Pereira 2020-05-23 18:51:25 UTC
Created attachment 128735 [details]
latte-dock systemtray
Comment 22 Alexandre Pereira 2020-05-23 18:55:18 UTC
confirmed:

reverting back to previous trdmi package of git latte-dock brought back the systemtray