Bug 427300 - XMoveResizeWindow cannot resize past the taskbar
Summary: XMoveResizeWindow cannot resize past the taskbar
Status: REOPENED
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.18.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-03 16:40 UTC by Misha Aizatulin
Modified: 2024-06-08 22:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Misha Aizatulin 2020-10-03 16:40:06 UTC
SUMMARY

XMoveResizeWindow cannot resize past the taskbar. 

STEPS TO REPRODUCE
Run
wmctrl -r :ACTIVE: -e 0,-1,-1,-1,N
where N is the height of your screen or larger.

OBSERVED RESULT
The window gets resized to at most (screen height - taskbar height).

EXPECTED RESULT
The window should get resized to N.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Suse 15.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: ??
Qt Version: 5.12.7

ADDITIONAL INFORMATION

The reason I want this is because I sometimes view images full-screen, by telling the window to stay above others, and dragging it over the taskbar. 

Sadly, if you configure the window to remember it's height, it won't, but instead will be truncated at the taskbar the next time. So I have to always manually resize.
Comment 1 Vlad Zahorodnii 2020-10-08 07:05:46 UTC
KWin keeps windows in the work area on purpose as far as I know. The reason for that is to ensure that no window gets off-screen.
Comment 2 Misha Aizatulin 2020-10-08 10:36:17 UTC
What I'm asking for is allowing the bottom of the window to go to the bottom of the screen. This will not cause the window to go off-screen, as long as you keep track of the top. This is also something that is already trivially possible with the mouse. So I'm asking that XMoveResizeWindow is allowed to do something that the user is already allowed to do with their mouse.
Comment 3 Misha Aizatulin 2022-11-13 02:32:32 UTC
Any thoughts? 

It makes little sense to me that a window is allowed to go beyond the edge of the screen horizontally, but is not allowed to go beyond the taskbar vertically.
Comment 4 Zamundaaa 2024-06-07 17:11:37 UTC
Sorry, but keeping windows in the work area is intentional. If you want to have the window be effectively fullscreen, you can make the window actually fullscreen, or change your panel to not reserve part of the screen for itself (-> auto hide or dodge windows mode)
Comment 5 Misha Aizatulin 2024-06-08 22:30:57 UTC
> Sorry, but keeping windows in the work area is intentional.

  But I am not suggesting that the window should leave the work area. All I'm asking for is that it is allowed to extend to the bottom of the screen. You can still make sure that the top of the window is within the work area if you like.

  Unfortunately, neither solution you suggested works for me. I don't want to make the window fullscreen - I want the width to remain the same. I also wouldn't want to hide the taskbar - I do like seeing it.