Bug 477566 - Obvious offset between real screen area and screen area allowed for widget placement/size when using Latte Dock
Summary: Obvious offset between real screen area and screen area allowed for widget pl...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: plasmoid (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-26 15:18 UTC by pewkrause
Modified: 2024-10-03 17:35 UTC (History)
2 users (show)

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


Attachments
The Add widgets context menu (29.43 KB, image/webp)
2023-11-30 00:38 UTC, pewkrause
Details
The widget sidebar (50.50 KB, image/webp)
2023-11-30 00:42 UTC, pewkrause
Details
Widget flipping back when trying to move or resize it (1.16 MB, video/x-matroska)
2023-12-01 16:32 UTC, pewkrause
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pewkrause 2023-11-26 15:18:57 UTC
SUMMARY
I am using a notebook having a screen resolution of 1920x1200 px plus an external monitor ASUS BP248 with the same resolution connected via HDMI 2.0 port. In the screen settings I disabled the internal screen, so I am only using the external one.

The problem occurs when trying to add a wizard:
Any wizard can only be added to the upper section of the screen and cannot be moved/resized into the lower section.  However, it looks like the wizard window can be moved across the upper screen edge, which makes me assume that there is a vertical offset between the actual screen and the screen area allowed for widgets to be placed in.

STEPS TO REPRODUCE
1. Using the monitor setup described above open the 'add wizard' application and create any wizard.

OBSERVED RESULT
The wizard is automatically placed within the upper section of the screen and cannot be moved or resized into the lower part. However, it can be moved across the upper screen edge.

EXPECTED RESULT
Adding a wizard should place the wizard window at a sort of default position within the screen and the window should allow to be placed/resized anywhere on the screen but not outside the screen area.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231124
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: SchenkerTechnologiesGmbH
Product Name: SCHENKER VISION 14
Comment 1 Nate Graham 2023-11-29 22:16:03 UTC
What is the "Add Wizard" application? Is this a KDE app? Can you attach a screenshot of it?
Comment 2 pewkrause 2023-11-30 00:38:31 UTC
Created attachment 163626 [details]
The Add widgets context menu
Comment 3 pewkrause 2023-11-30 00:42:11 UTC
Created attachment 163627 [details]
The widget sidebar

From the widget sidebar, locate a widget you want to add to the desktop and click it. The widget will be added to the desktop and you can either add more or close the sidebar.
Comment 4 pewkrause 2023-11-30 00:47:55 UTC
Sorry for my bad English. I am using the German Plasma Edition so I may have made translation errors.
Comment 5 Nate Graham 2023-11-30 20:43:07 UTC
Thank you.

I cannot reproduce the issue with a laptop connected to an external screen and its internal screen closed and disabled. Can you by any chance attach a screen recording that depicts the issue happening, so I can make sure I'm testing correctly?
Comment 6 pewkrause 2023-12-01 16:32:15 UTC
Created attachment 163710 [details]
Widget flipping back when trying to move or resize it

I added a mkv video file showing the wizard window not being able to be moved or resized across the boarders of the restricted screen area. However, I was wrong when I said the wizard window can be moved across the upper edge of the screen. I flips back there, too. So, no offset of the allowed screen area but just a restricted area.

Also, I found a workaround for this issue: Everything works as expected if I restart the Plasma Shell using 'killall plasmashell' and 'kstart5 plasmashell'.

I hope the info helps. Thanks
Comment 7 Nate Graham 2023-12-04 21:49:01 UTC
Thanks. I notice you were using a 3rd-party widget to test with. Does the issue still happen with the 1st-party Analog Clock widget that I also see on your desktop?
Comment 8 pewkrause 2023-12-05 08:38:36 UTC
(In reply to Nate Graham from comment #7)
> Thanks. I notice you were using a 3rd-party widget to test with. Does the
> issue still happen with the 1st-party Analog Clock widget that I also see on
> your desktop?

The clock and other 1st-party widgets are showing just the same behavior.
Comment 9 Nate Graham 2023-12-12 22:22:43 UTC
Thanks. Can you test with only one screen connected, rather than two? Does it still happen?
Comment 10 pewkrause 2023-12-13 14:07:35 UTC
(In reply to Nate Graham from comment #9)
> Thanks. Can you test with only one screen connected, rather than two? Does
> it still happen?

The issue does not depend on which screen I use/connect as a single screen. 
However, I found that the problem is obviously caused by Latte-Dock, which I usually auto-start at system startup (3 docks at the bottom of the screen), even if I delay the auto-start by 20 s. Also in case the application is not auto-started, the wizard windows are automatically moved into the upper screen section as soon as I start Latte-Dock manually. So, still the only way I found so far to get around it is to restart plasmashell with Latte-Dock already running. For the time being this does not hurt too much, as currently I am only using the analog clock wizard being placed in the upper right corner, so the issue does not affect the actual screen layout.
Comment 11 Nate Graham 2023-12-13 21:25:58 UTC
Thanks, moving to Latte Dock.