Bug 459755 - 5.26 Wayland windows go below Latte when "always visible" is chosen
Summary: 5.26 Wayland windows go below Latte when "always visible" is chosen
Status: REOPENED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
: 460783 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-27 17:46 UTC by randomland
Modified: 2024-02-10 05:34 UTC (History)
23 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
observed result (151.37 KB, image/png)
2022-09-27 17:46 UTC, randomland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description randomland 2022-09-27 17:46:26 UTC
Created attachment 152474 [details]
observed result

SUMMARY

On Plasma 5.26 Wayland session when Latte's "always visible" option is selected, maximized windows will go behind Latte Dock, instead of ignoring the space used by Latte Dock. 

STEPS TO REPRODUCE
1. Plasma 5.26 and Wayland session should be used. 
2. Create a Latte Dock and enable "always visible" . Right click on dock, *Edit Panel* and choose "always visible" from *Behavior -> Visibility*
3. Maximize any window. 

OBSERVED RESULT
A part of the window will be covered by Latte. (see screenshot_broken.png)

EXPECTED RESULT
The maximized window is fully visible

SOFTWARE/OS VERSIONS

Operating System: Garuda Linux
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.10-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × 11th Gen Intel® Core™ i5-11400H @ 2.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: MONSTER
Product Name: ABRA A7 V13.1
System Version: Not Applicable
Comment 1 nick.sev 2022-10-16 08:15:53 UTC
Same issue on EndeavourOS with Plasma 5.26
Comment 2 Afonso Sousa 2022-10-22 14:09:40 UTC
Can confirm, same issue here on Tumbleweed, Plasma 5.26
Comment 3 Isaac Wismer 2022-11-14 21:22:36 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Oleg Yakovenko 2022-11-30 23:07:01 UTC
*** Bug 461896 has been marked as a duplicate of this bug. ***
Comment 5 kiuuby9234 2022-12-01 07:46:56 UTC
Same issue on Arch Linux, KDE Plasma 5.26.3 , Wayland
Comment 6 Gaetan Jonathan 2022-12-11 20:05:04 UTC
same issue in 5.26.4 

Arch Linux - Wayland, 

it works in x11
Comment 7 Jacob Cardinale 2022-12-17 20:06:28 UTC
Same issue on Kubuntu 22.10, Plasma 5.26.4 on Wayland. The issue persists in both latte-dock binary repository version 0.10.8 and git version (0.10.77)
Comment 8 farline99 2022-12-20 10:18:03 UTC
Affected by this on Arch Linux, Plasma 5.26.4, KDE Frameworks 5.100. Both git and release version :D
Comment 9 Saeed 2022-12-20 10:22:36 UTC
I have the same issue on Wayland only. Works as expected on X11.

~~~
OS : Manjaro 22.0
KDE: 5.26.4
Kernel: 6.0.11-1-MANJARO
LD : 0.10.77
Wayland
~~~
Comment 10 leo.mann 2022-12-26 13:39:29 UTC
Same problem for me when using Latte in Wayland. Its fine and as expected under X11.
Yakuake in contrast shows up at the right position under Wayland.

OS : Manjaro 22.1
KDE: 5.26.4
Kernel: 6.1.1-1-MANJARO
Qt: 5.15.7
KDE-Framework: 5.101.0
Wayland
Comment 11 Rania Amina 2023-01-28 15:09:15 UTC
Still happen on Debian Sid with latest master build
Comment 12 Mathias Tillman 2023-02-05 17:42:59 UTC
I have the same issue and I've managed to narrow the issue down to WaylandInterface::setViewStruts in app/wm/waylandinterface.cpp. The issue seems to be that the ghost window has a width (or height) of 1 pixel, and that causes it to be (I'm guessing) ignored by the wm. If I change the w->setGeometry call to use the full rect it works properly. I did some further testing, and for me the "magic" value that causes it to work is if I set the width to 88 pixels - any less than that and it won't work.
Anyone know the reason for it not using the full rect for the ghost window?
Comment 13 Mathias Tillman 2023-02-05 18:07:14 UTC
Slight update: Seems that it doesn't like it when the width is smaller than the height (for a top or bottom panel) or vice-versa. The "magic" 88 pixels width in my previous comment was actually the same as the height - that's why it started working when I changed it to that.
So I guess a simple solution would be to change the 1 pixel width/height to the height/width counterpart.
Comment 14 Bug Janitor Service 2023-02-06 09:10:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/latte-dock/-/merge_requests/44
Comment 15 Jonathan Isom 2023-02-18 13:22:32 UTC
I am using plasma wayland 5.27 with latte-dock git and this doesn't seemed to be fixed. Specifically fullscreen apps go under the dock.  Think games.  I have always visible enabled and when playing witcher 3 the dock is still onscreen.  Using arch/nvidia.
Comment 16 randomland 2023-02-19 15:13:50 UTC
*** Bug 460783 has been marked as a duplicate of this bug. ***
Comment 17 Saeed 2023-03-05 00:39:59 UTC
(In reply to Mathias Tillman from comment #13)
> Slight update: Seems that it doesn't like it when the width is smaller than
> the height (for a top or bottom panel) or vice-versa. The "magic" 88 pixels
> width in my previous comment was actually the same as the height - that's
> why it started working when I changed it to that.
> So I guess a simple solution would be to change the 1 pixel width/height to
> the height/width counterpart.

Works like a charm, thank you for the resolution.
Comment 18 Archisman Panigrahi 2023-03-05 04:14:52 UTC
(In reply to Mathias Tillman from comment #13)
> Slight update: Seems that it doesn't like it when the width is smaller than
> the height (for a top or bottom panel) or vice-versa. The "magic" 88 pixels
> width in my previous comment was actually the same as the height - that's
> why it started working when I changed it to that.
> So I guess a simple solution would be to change the 1 pixel width/height to
> the height/width counterpart.

How do you change this height? I could not find a file named waylandinterface.cpp
Comment 19 Saeed 2023-03-05 09:31:33 UTC
(In reply to Archisman Panigrahi from comment #18)
> (In reply to Mathias Tillman from comment #13)
> > Slight update: Seems that it doesn't like it when the width is smaller than
> > the height (for a top or bottom panel) or vice-versa. The "magic" 88 pixels
> > width in my previous comment was actually the same as the height - that's
> > why it started working when I changed it to that.
> > So I guess a simple solution would be to change the 1 pixel width/height to
> > the height/width counterpart.
> 
> How do you change this height? I could not find a file named
> waylandinterface.cpp

You can find the file in `app/wm/waylandinterface.cpp`, I am lazy so installed the `latte-dock-git r5955.24b1e8fa-1` package from `yay`
Comment 20 Mathias Tillman 2023-03-05 12:49:29 UTC
(In reply to Archisman Panigrahi from comment #18)
> (In reply to Mathias Tillman from comment #13)
> > Slight update: Seems that it doesn't like it when the width is smaller than
> > the height (for a top or bottom panel) or vice-versa. The "magic" 88 pixels
> > width in my previous comment was actually the same as the height - that's
> > why it started working when I changed it to that.
> > So I guess a simple solution would be to change the 1 pixel width/height to
> > the height/width counterpart.
> 
> How do you change this height? I could not find a file named
> waylandinterface.cpp

You can see what needs to be changed in the MR above: https://invent.kde.org/plasma/latte-dock/-/merge_requests/44
Comment 21 Volodymyr 2024-02-10 05:34:23 UTC
I have the same problem. Two latte panels and windows are below the top panel. The top latte panel is above the browser window and doesn't allow to switch the tabs while browser in full-screen mode.

Latte Dock version: 0.10.8
Arch Linux: 6.6.16-1-lts
KDE Plasma Version: 5.27.10
Graphics Platform: Wayland

Screen Resolution: 3840x2160
Scale: 200%