Bug 419731 - symmetric floating gap
Summary: symmetric floating gap
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-06 15:42 UTC by avlas
Modified: 2021-01-07 22:37 UTC (History)
1 user (show)

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


Attachments
Screenshot 2 windows (151.50 KB, image/png)
2020-04-06 16:55 UTC, avlas
Details
Screenshot 1 window (142.58 KB, image/png)
2020-04-06 16:56 UTC, avlas
Details
Screenshot 1 window (maximized) (106.67 KB, image/png)
2020-04-06 16:56 UTC, avlas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description avlas 2020-04-06 15:42:58 UTC
The screen gap makes the panel float (separate) from screen border but it does not float from applications in the desktop environment.

For visual consistency, I'd like to apply a (small) symmetric floating gap both with respect to the screen limit as well as to application windows.
Comment 1 Michail Vourlakos 2020-04-06 16:06:41 UTC
this is not Latte responsibility, you can use KWin tiling scripts for that
Comment 2 avlas 2020-04-06 16:15:57 UTC
(In reply to Michail Vourlakos from comment #1)
> this is not Latte responsibility, you can use KWin tiling scripts for that

Yes, right. I'm actually doing this with quarter tiling, but tiling scripts don't deal with margins of maximized windows (I guess it's not their responsibility either).

Please see: https://github.com/Jazqa/kwin-quarter-tiling/issues/83

I know there is an option to remove the floating gap for maximized windows in latte but IMO floating panels look better for those who want to use them, and with only one client there is no much reason to save the gap space.

My only issue is the dissonance in the behavior of maximized windows, hence I opened this issue to easily workaround the problem.

But I understand your point.
Comment 3 Michail Vourlakos 2020-04-06 16:19:11 UTC
Provide a mockup of what you are trying to achieve for maximized windows and please the mockup to show the entire desktop, in order to understand if that makes any sense.
Comment 4 avlas 2020-04-06 16:54:27 UTC
(In reply to Michail Vourlakos from comment #3)
> Provide a mockup of what you are trying to achieve for maximized windows and
> please the mockup to show the entire desktop, in order to understand if that
> makes any sense.

I am about to add three attachments to see how:

- two windows look like
- one window looks like
- one maximized window looks like

I wish the gaps that are present in the first two screenshots to apply to the third. For this I would need to:

- remove margins from tiling

- and have symmetric gaps from latte, so gaps would apply above and below a panel

[ Similarly for vertical panels this could be generalized to symmetric gaps are set at their right and left ]

If you think it doesn't make sense it's fine, perhaps just a kwin script for maximized clients may do the job, but I never did any one before :/
Comment 5 avlas 2020-04-06 16:55:27 UTC
Created attachment 127328 [details]
Screenshot 2 windows
Comment 6 avlas 2020-04-06 16:56:00 UTC
Created attachment 127329 [details]
Screenshot 1 window
Comment 7 avlas 2020-04-06 16:56:27 UTC
Created attachment 127330 [details]
Screenshot 1 window (maximized)
Comment 8 Michail Vourlakos 2020-04-06 17:07:44 UTC
Let me think about it, they look nice but I don't know the environment consequences
Comment 9 avlas 2020-04-06 17:16:17 UTC
(In reply to Michail Vourlakos from comment #8)
> Let me think about it, they look nice but I don't know the environment
> consequences

Sure, thank you.

Perhaps, if it would simplify things, a kwin script setting margins could suffice.
Comment 10 Michail Vourlakos 2021-01-07 22:37:43 UTC
Git commit 069455be4e0831b12fceed7c94bd86a98426ef97 by Michail Vourlakos.
Committed on 07/01/2021 at 22:33.
Pushed by mvourlakos into branch 'master'.

provide struts based on screen gap

--following new norms and styles the struts
applying for Always Visible they now take into account
the screen edge margin and apply the same margin
also at their head thickness margin. If there is
much negative user feedback this might be reverted.

M  +2    -2    containment/package/contents/ui/VisibilityManager.qml

https://invent.kde.org/plasma/latte-dock/commit/069455be4e0831b12fceed7c94bd86a98426ef97