Bug 446308 - Maximize windows does not fill to the bottom of the screen on secondary display
Summary: Maximize windows does not fill to the bottom of the screen on secondary display
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-01 02:41 UTC by Liam Murphy
Modified: 2023-01-18 14:57 UTC (History)
1 user (show)

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


Attachments
Image shows a maximized window that is not filling to the bottom of the desktop. (83.99 KB, image/png)
2021-12-01 02:41 UTC, Liam Murphy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liam Murphy 2021-12-01 02:41:01 UTC
Created attachment 144107 [details]
Image shows a maximized window that is not filling to the bottom of the desktop.

SUMMARY
On my secondary monitor, attempting to maximize any window is resulting in a "gap" between the bottom of the window, and the bottom of the desktop. My guess is that Kwin (or whatever component this should apply to) believes that a panel exists, even though it doesn't. 

This can be seen in the attached image.

Note: this could be a plasma shell bug as well, wasn't sure the best place to put it.


STEPS TO REPRODUCE
UNKNOWN. 

OBSERVED RESULT
This started occurring randomly. Does not occur on my primary monitor where a bottom panel does exist. Have attempted to restart plasmashell and kwin / restarting my whole PC, no change.

EXPECTED RESULT
A maximize window would fill to the bottom of the screen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  5.15.5
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version:  5.15.2

ADDITIONAL INFORMATION

I have an RTX 3070, driver version 495.44 (in case that makes a difference).
Comment 1 Nate Graham 2021-12-01 20:31:22 UTC
X11 or Wayland? Any scaling in use?
Comment 2 Liam Murphy 2021-12-01 23:08:03 UTC
(In reply to Nate Graham from comment #1)
> X11 or Wayland? Any scaling in use?

X11, scaling is set to default (100%). Primary monitor is DisplayPort, secondary is HDMI, both are 2560x1440 FWIW.
Comment 3 Nate Graham 2021-12-02 03:49:57 UTC
Thanks. How strange.
Comment 4 Liam Murphy 2021-12-04 00:34:41 UTC
(In reply to Nate Graham from comment #3)
> Thanks. How strange.

After some digging I believe this is a plasmashell issue (apologies for putting it in the wrong spot). Running plasmashell from the shell with `plasmashell --replace` and then quitting that process (presumably shutting down plasmashell) resulted in the windows on my second screen to be properly maximized.

So I looked in `~/.config/plasmashellrc` and found these entries:

```
[PlasmaViews][Panel 26][Defaults]
thickness=20

[PlasmaViews][Panel 26][Horizontal2560]
thickness=20

[PlasmaViews][Panel 26][Vertical1440]
thickness=54

[PlasmaViews][Panel 3][Defaults]
thickness=30

[PlasmaViews][Panel 3][Horizontal2560]
thickness=30
```

Panel 3 is the panel on my main display, so I thought it was strange this "Panel 26" existed. So I deleted that, rebooted my system, and now it's fixed.
Comment 5 Vlad Zahorodnii 2023-01-18 14:57:48 UTC
Thanks for the update.