Bug 466335 - Task bar not visible on second monitor but fullscreen window acts as if it was
Summary: Task bar not visible on second monitor but fullscreen window acts as if it was
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2023-02-24 08:10 UTC by kx
Modified: 2023-06-14 06:54 UTC (History)
2 users (show)

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


Attachments
The end result of fullscreening a window with the gap at the bottom visible (1.15 MB, image/png)
2023-02-24 08:10 UTC, kx
Details
Showing the bug of the window not scaling in relation to both screens (262.45 KB, image/png)
2023-02-25 06:42 UTC, kx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kx 2023-02-24 08:10:59 UTC
Created attachment 156665 [details]
The end result of fullscreening a window with the gap at the bottom visible

SUMMARY

STEPS TO REPRODUCE
1. Move a window to a second monitor that does not have a taskbar
2. Set it to fullscreen

OBSERVED RESULT
The window scales to a size at which it should scale to would there be a taskbar. But since there is no task bar the fullscreen window doesn't fill the whole screen and leaves a gap to the bottom edge of the display.

EXPECTED RESULT
The window fills the entire screen and doesn't leave a gap.

SOFTWARE/OS VERSIONS
OS: 6.1.12-zen1-1-zen (64-bit)
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Nate Graham 2023-02-24 21:23:53 UTC
Is this on X11 or Wayland? Does it reproduce on both, or just one?

Can you post a screenshot that shows your screen arrangement?
Comment 2 kx 2023-02-25 06:41:30 UTC
(In reply to Nate Graham from comment #1)
> Is this on X11 or Wayland? Does it reproduce on both, or just one?
> 
> Can you post a screenshot that shows your screen arrangement?

This is on X11.

I already added an attachment of my second screen, I will add one more showing the full two screens.
Comment 3 kx 2023-02-25 06:42:48 UTC
Created attachment 156699 [details]
Showing the bug of the window not scaling in relation to both screens
Comment 4 kx 2023-02-25 20:52:07 UTC
I just discovered where the issue might come from while having an issue with games launching on my non primary monitor. In the settings i switched around the primary display between my two monitors a few times or generally just toggled settings, also disabled the non-primary display and that fixed this issue as well as the game starting on the wrong monitor.

I am guessing that the issue initially begun when switching my Primary HDMI to my TV for watching a movie and going back to my normal display.
Comment 5 kx 2023-03-19 16:34:44 UTC
I think this has something to do with the window management on KDE Desktop. I looked around the repositories a bit, but couldn't really see where this part is implemented (still new to the structure and the 1100 repositories :v). Could anyone point me to the repository / code place where the Primary monitor is set when changing it in system settings?
Comment 6 Nate Graham 2023-03-27 18:38:55 UTC
The issue will be in KWin, with respect to how it calculates the area that a maximized window can fill.
Comment 7 kx 2023-06-14 06:54:57 UTC
I haven't ran into this issue again, and it seems to be unreproducible by now.