Bug 413461 - [feature/wayland/gnome] - latte is badly positioned on debian Gnome wayland
Summary: [feature/wayland/gnome] - latte is badly positioned on debian Gnome wayland
Status: REPORTED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-26 04:50 UTC by prog-amateur
Modified: 2022-07-01 06:20 UTC (History)
0 users

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


Attachments
"env" command (264.48 KB, image/png)
2019-10-30 03:27 UTC, prog-amateur
Details
Latte debug window (309.94 KB, image/jpeg)
2019-10-30 03:45 UTC, prog-amateur
Details
Bug screenshot (780.62 KB, image/png)
2019-10-30 03:47 UTC, prog-amateur
Details
gnome control panel 1 (121.84 KB, image/png)
2019-11-03 16:11 UTC, prog-amateur
Details
gnome control panel 2 (85.76 KB, image/png)
2019-11-03 16:12 UTC, prog-amateur
Details
about_latte (49.92 KB, image/png)
2019-11-04 14:51 UTC, prog-amateur
Details
graphic command 1/2 (3.89 MB, image/png)
2019-11-04 14:53 UTC, prog-amateur
Details
graphic command 2/2 (702.97 KB, image/png)
2019-11-04 14:54 UTC, prog-amateur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description prog-amateur 2019-10-26 04:50:45 UTC
SUMMARY


STEPS TO REPRODUCE
1. To have Debian sid (GNOME 3.34, kernel 5, and connect on Wayland session)
2. To install Latte-dock from Software center
3. Enjoy

The dock is on middle of my screen and I can't move it down (mouse click or "bottom" buttton). 


Bottom button should position Latte-dock on the bottom of the screen. 


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

Sorry to post here despite I am on Debian, but I just have followed the bug tracker link for latte-dock. 

Thank you
Comment 1 Michail Vourlakos 2019-10-26 06:24:12 UTC
1. X11 or wayland
2. Are you using screens scaling?
3. Run Latte from cmd with: latte-dock -d --with-window

and after Latte is positioned faulty make a full desktop screenshot including the debug window
Comment 2 Michail Vourlakos 2019-10-26 06:42:28 UTC
4. Send also a screenshot of plasma systemsettings, Screens options
Comment 3 Michail Vourlakos 2019-10-26 07:06:33 UTC
5. Send also your env ourput
Comment 4 Michail Vourlakos 2019-10-27 13:15:01 UTC
waiting for info...
Comment 5 prog-amateur 2019-10-27 23:06:01 UTC
Sorry, I did not feedback quicker 
1 : the issue occurs on Wayland, Xorg works well
2 : Yes I use screen scaling 200% (but also in Xorg and I have no problem)
3 : I have to test and feedback
4 : As I said, I am on debian (Gnome), so it is not in KDE, so I guess, this request is not applicable here
5 : please feel free to tell me how to give you this information, thank you. 

Thank you
Comment 6 Michail Vourlakos 2019-10-28 05:30:36 UTC
Oh!! I didnt know that Latte could run with Gnome(Wayland) session! So nice news!

5. Just run in your terminal the commmand "env" and send here the output
6. What is your screen resolution?
7. Try to run Latte from terminal with command, latte-dock -d --with-window, a debug window will appear. After the dock is positioned faulty please make a screenshot of your desktop including the debug window.

Info: My best guess is that Qt faulty returns a screen resolution that it is not the proper one based on the screen scaling you have applied and the debug window will point that.
Comment 7 prog-amateur 2019-10-30 03:27:42 UTC
Created attachment 123579 [details]
"env" command

Please find the "env" command
Comment 8 prog-amateur 2019-10-30 03:45:56 UTC
Created attachment 123580 [details]
Latte debug window

Please find attached the latte debug window
Comment 9 prog-amateur 2019-10-30 03:47:09 UTC
Created attachment 123581 [details]
Bug screenshot

Please find attached the bug screenshot. Thank you very much for your help !
Comment 10 prog-amateur 2019-10-30 03:49:53 UTC
(In reply to Michail Vourlakos from comment #6)
> Oh!! I didnt know that Latte could run with Gnome(Wayland) session! So nice
> news!
> 
> 5. Just run in your terminal the commmand "env" and send here the output
> 6. What is your screen resolution?
> 7. Try to run Latte from terminal with command, latte-dock -d --with-window,
> a debug window will appear. After the dock is positioned faulty please make
> a screenshot of your desktop including the debug window.
> 
> Info: My best guess is that Qt faulty returns a screen resolution that it is
> not the proper one based on the screen scaling you have applied and the
> debug window will point that.

Thank you for your kind help, I have done what you asked me to do. I hope it will be useful to find finally what is the root cause about this strange issue. 
Latte is a fantastic dock, available on Debian, let's use it !
Comment 11 Michail Vourlakos 2019-10-30 06:45:11 UTC
1. In your env output do you see any PLASMA_USE_QT_SCALING property enabled?

2. Please Latte about page to check out if Latte runs natively in wayland or through xwayland. right click the dock, Layouts, Configure, Help menu, About Latte. What window system does it mention xcb or wayland?
Comment 12 Michail Vourlakos 2019-10-30 06:52:01 UTC
3. Show me also a screenshot of your Screens settings in gnome control panel
Comment 13 prog-amateur 2019-11-03 16:10:52 UTC
1. In your env output do you see any PLASMA_USE_QT_SCALING property enabled?
> No, there is no PLASMA_USE_QT_SCALING, all is in the env command png file that I have attached here. 

2. Please Latte about page to check out if Latte runs natively in wayland or through xwayland. right click the dock, Layouts, Configure, Help menu, About Latte. What window system does it mention xcb or wayland?
> About page says that system is "wayland"

3. Show me also a screenshot of your Screens settings in gnome control panel
> Please find it attached in 2 pictures (gnome control panel 1, gnome control panel 2)
Comment 14 prog-amateur 2019-11-03 16:11:50 UTC
Created attachment 123698 [details]
gnome control panel 1
Comment 15 prog-amateur 2019-11-03 16:12:15 UTC
Created attachment 123699 [details]
gnome control panel 2
Comment 16 prog-amateur 2019-11-03 16:14:15 UTC
Also, I just forgot to say that scaling the display to 100% does not solve the issue. Thank you for your help !
Comment 17 Michail Vourlakos 2019-11-03 18:07:09 UTC
B1 : please show me also a screenshot of : Latte about page to check out if Latte runs natively in wayland or through xwayland. right click the dock, Layouts, Configure, Help menu, About Latte. What window system does it mention xcb or wayland?

B2 : Close Latte and run it from terminal with command: latte-dock -d --graphics and make a screenshot of your desktop with Latte in it please
Comment 18 prog-amateur 2019-11-04 14:51:26 UTC
Created attachment 123713 [details]
about_latte

please find "about latte" screenshot
Comment 19 prog-amateur 2019-11-04 14:53:02 UTC
Created attachment 123714 [details]
graphic command 1/2

Please find first part of --graphic command
Comment 20 prog-amateur 2019-11-04 14:54:00 UTC
Created attachment 123715 [details]
graphic command 2/2

Please find attached a screenshot of --graphic command (last part)
Comment 21 Michail Vourlakos 2019-11-04 14:58:13 UTC
If you try to move Latte in another screen edge from its settings what does it happen?
Comment 22 prog-amateur 2019-11-05 21:42:29 UTC
Any other Edge is offset (too much on the right, or down, etc.)
Comment 23 Michail Vourlakos 2019-11-06 06:53:19 UTC
(In reply to prog-amateur from comment #22)
> Any other Edge is offset (too much on the right, or down, etc.)

I believe that this is just the wayland way of doing this. In wayland environment the windows can not position themselves without communicating with the wm running. Latte has achieved this for Plasma/KWin combo. In the past there were some articles that there will be a protocol that even sway would use in order to achieve this. For Gnome I don't even know if there is a way for external docks/panels to place themselves on their own.