Bug 391073 - Latte panels/docks overlap the desktop icons
Summary: Latte panels/docks overlap the desktop icons
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
: 396126 (view as bug list)
Depends on:
Blocks: 423855
  Show dependency treegraph
 
Reported: 2018-02-25 22:53 UTC by Michail Vourlakos
Modified: 2020-07-04 00:19 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot about overlapping Latte Dock (1.42 MB, image/jpeg)
2018-06-25 13:09 UTC, Otto Radics
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michail Vourlakos 2018-02-25 22:53:44 UTC
Plasma isnt exposing any mechanism for external docks/apps to publish what space they occupy per screen.

This situation produces overlaps between desktop contents and external docks/panels: https://github.com/psifidotos/Latte-Dock/issues/737#issuecomment-368351550

I could provide a patch but I suppose this needs a protocol and of course plasma devs to agree in this.


The easiest protocol I can think of is that an external app could publish to plasma the free available screen rectangle. The key for the screen identification could be the name of the screen as it is already done in plasma's screenpool.
Comment 1 Michail Vourlakos 2018-02-26 17:07:09 UTC
Just to add some info...

Plasma :: ShellCorona is using QScreen::geometry() in order to indicate the screens borders
on the other hand KRunner is using QScreen::availableGeometry() that takes into account the struts (I dont know if this is also the case for wayland).

A sub solution could be for DesktopView to provide the availableGeometry instead of the geometry if this solves also the wayland case partially.

Pros: Always Visible modes from external docks/panels would be taken into account

Cons: All rest visibility modes that dont use struts will have the same issue. Plasma is using the thickness internal value from each panel in order to provide this for all panels even though that are hidden.
Comment 2 Otto Radics 2018-06-25 13:09:21 UTC
Created attachment 113555 [details]
Screenshot about overlapping Latte Dock
Comment 3 Michail Vourlakos 2018-07-03 12:50:31 UTC
*** Bug 396126 has been marked as a duplicate of this bug. ***
Comment 4 Michail Vourlakos 2020-02-22 12:33:43 UTC
Git commit d071e3be33480e5c82f367b18ca37f2d2144798d by Michail Vourlakos.
Committed on 22/02/2020 at 12:30.
Pushed by mvourlakos into branch 'master'.

publish available screen geometries to Plasma

--Plasma 5.18 introduced a new dbus interface in order
for external apps to be able to publish to Plasma how
much they occupy from screen space. This is a much
requested feature from users, Latte is now publishing
both its availableScreenRect and availableScreenRegions
and this is also Multiple Layouts aware at runtime.

M  +3    -0    app/lattecorona.cpp
M  +2    -0    app/lattecorona.h
M  +1    -0    app/plasma/extended/CMakeLists.txt
A  +161  -0    app/plasma/extended/screengeometries.cpp     [License: GPL (v2+)]
A  +83   -0    app/plasma/extended/screengeometries.h     [License: GPL (v2+)]

https://commits.kde.org/latte-dock/d071e3be33480e5c82f367b18ca37f2d2144798d
Comment 5 Timur Tabi 2020-06-30 16:43:51 UTC
What version of lattedock will include this fix?
Comment 6 Michail Vourlakos 2020-06-30 21:29:21 UTC
Latest git version. You should build Latte yourself if your distro git version is outdated.
Comment 7 Timur Tabi 2020-07-01 03:23:20 UTC
I don't want to build lattedock myself, because I don't want to deal with that.  I just want to know what/when the next release will be, so I know what to look for.
Comment 8 Michail Vourlakos 2020-07-01 04:56:15 UTC
The next release 0.10 is planned for release in one and half year time