Bug 453920 - Kwin Debug Console appears off-screen in some multi-monitor configurations
Summary: Kwin Debug Console appears off-screen in some multi-monitor configurations
Status: REOPENED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 5.24.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-17 02:30 UTC by kdebugs
Modified: 2025-03-23 15:28 UTC (History)
3 users (show)

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


Attachments
Example screen layout (13.57 KB, image/png)
2022-05-17 03:09 UTC, kdebugs
Details
shows the console off screen (deleted)
2024-10-09 16:23 UTC, kdebugs
Details
shows the display configuration (59.42 KB, image/png)
2024-10-09 16:23 UTC, kdebugs
Details
shows the console off screen (3.65 MB, image/png)
2024-11-02 05:18 UTC, kdebugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2022-05-17 02:30:31 UTC
SUMMARY

After installing the krunner extension "kwin" and running the "kwin debug console", the console window appears off-screen when using some mutli-monitor setups.

The logic seems to be that the debug console appears in the top-left corner of the overall desktop space, but in my case I have two monitors side by side at a lower level and one above them, centered between the lower monitors. This causes the window to appear off the left edge of the top monitor.

STEPS TO REPRODUCE
1. Open krunner, click the configure button, enter "kwin" in the search, enable it, close the dialog
2. open krunner, run the kwin debug console
3. observe the location of the debug console window
4. in system settings adjust left/right position a screen that lies above a lower screen

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-30-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4770K CPU @ 3.50GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Comment 1 kdebugs 2022-05-17 03:09:57 UTC
Created attachment 148903 [details]
Example screen layout
Comment 2 Bug Janitor Service 2022-11-15 12:12:19 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3194
Comment 3 Vlad Zahorodnii 2022-11-15 13:19:07 UTC
Git commit e58affc71bf71812457b3e31cec07a6fa2027156 by Vlad Zahorodnii.
Committed on 15/11/2022 at 12:11.
Pushed by vladz into branch 'master'.

wayland: Make debug console placeable

Since the debug console has Qt.BypassWindowManagerHint flag set, it
won't be placed or ensured that it stays in the work area.

On the other hand, unlike X11, kwin won't have problems if the debug
console is managed on wayland.

M  +1    -3    src/debug_console.cpp

https://invent.kde.org/plasma/kwin/commit/e58affc71bf71812457b3e31cec07a6fa2027156
Comment 4 Vlad Zahorodnii 2022-11-15 13:23:19 UTC
Git commit 630990164fe8d0a7dcf132df530ad1031aea686f by Vlad Zahorodnii.
Committed on 15/11/2022 at 13:23.
Pushed by vladz into branch 'Plasma/5.26'.

wayland: Make debug console placeable

Since the debug console has Qt.BypassWindowManagerHint flag set, it
won't be placed or ensured that it stays in the work area.

On the other hand, unlike X11, kwin won't have problems if the debug
console is managed on wayland.


(cherry picked from commit e58affc71bf71812457b3e31cec07a6fa2027156)

M  +1    -3    src/debug_console.cpp

https://invent.kde.org/plasma/kwin/commit/630990164fe8d0a7dcf132df530ad1031aea686f
Comment 5 kdebugs 2024-10-09 16:21:27 UTC
This is still broken -- plasma 5.27.11 on Kubuntu 24.04. I'll try to attach a screenshot but it's behaving as it did before.
Comment 6 kdebugs 2024-10-09 16:23:27 UTC
Created attachment 174574 [details]
shows the console off screen
Comment 7 kdebugs 2024-10-09 16:23:48 UTC
Created attachment 174575 [details]
shows the display configuration
Comment 8 Nicolás Alvarez 2024-11-02 05:12:06 UTC
The content of attachment 174574 [details] has been deleted for the following reason:

Deleted on user's request
Comment 9 kdebugs 2024-11-02 05:18:14 UTC
Created attachment 175466 [details]
shows the console off screen