Bug 492077 - No way to maximize window
Summary: No way to maximize window
Status: RESOLVED FIXED
Alias: None
Product: plasma-mobile
Classification: Plasma
Component: Shell (show other bugs)
Version: unspecified
Platform: postmarketOS Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Mobile Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-23 12:30 UTC by Julian Groß
Modified: 2024-10-21 21:49 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Groß 2024-08-23 12:30:50 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
There doesn't appear to be any way to maximize windows in Plasma Mobile 6.
In Plasma Mobile 5 using gesture mode, I was able to swipe up to open the task switcher. If I then touched a window (task), it maximized said window. This doesn't happen in Plasma Mobile 6 anymore.

STEPS TO REPRODUCE
1. Resize window, for example using Super + Arrow Down.
2. ?

OBSERVED RESULT
There is no way to maximize windows.

EXPECTED RESULT
By default, there should be a relatively easy way to maximize.

SOFTWARE/OS VERSIONS
Operating System: postmarketOS
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.6.25-mt8183
OS-Type: 64
Processor: 4 × ARM Cortex-A53, 4 × ARM Cortex-A73
Memory: 3,8 GiB

ADDITIONAL INFORMATION
This is important, since Firefox sometimes gets unmaximized when using the drawer in the top right (to enable wifi for exmaple).
Comment 1 Julian Groß 2024-08-23 20:26:28 UTC
One suggestion how this could be fixed: show a maximize button in the task switcher if the window isn't maximized. I would suggest the top left, so it isn't right next to the close button.
Comment 2 Luis B 2024-08-28 20:02:52 UTC
In which cases do non-maximized windows occur? In Plasma Mobile KWin should be configured to maximize windows by default anyways except for when Docked Mode is active (which also re-enables window decorations so you can maximize by dragging the window decoration to the top).
Comment 3 Julian Groß 2024-08-28 22:19:36 UTC
(In reply to Luis B from comment #2)
> In which cases do non-maximized windows occur?

You can deliberately unmaximize a window using a key combination such as Super + LeftArrow, which I use regularly in school to cite texts or similar.
As previously mentioned, Firefox specifically often gets unmaximized when using the top right drawer (for example to enable Wi-Fi).
Firefox has some small non-obvious places by which you can double-click the window to maximize it, those are hard to press with a touchpad though, and basically impossible to press using just the touch screen.

> In Plasma Mobile KWin should be configured to maximize windows by default (…)

This is the case. Anything maximizable is maximized by default.
Comment 4 Justin Zobel 2024-08-29 02:57:25 UTC
Ah interesting so it seems we should disable some window management keyboard shorcuts when not in docked mode. This would prevent this issue from occurring.
Comment 5 Bug Janitor Service 2024-10-21 18:01:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/597
Comment 6 Luis B 2024-10-21 18:06:21 UTC
Git commit 3353d452494a818d03e101522474e98ebd89074e by Luis Büchi.
Committed on 21/10/2024 at 09:53.
Pushed by lbuechi into branch 'master'.

reintroduce maximizing task on activating it in switcher

only maximize when not in docked mode to not break windowed workflow
when docked.

M  +4    -0    kwin/mobiletaskswitcher/qml/Task.qml

https://invent.kde.org/plasma/plasma-mobile/-/commit/3353d452494a818d03e101522474e98ebd89074e
Comment 7 Luis B 2024-10-21 20:29:19 UTC
Git commit ada43b08cdf9ab50118cd769ffc8d5647507854e by Luis Büchi.
Committed on 21/10/2024 at 17:58.
Pushed by lbuechi into branch 'Plasma/6.2'.

reintroduce maximizing task on activating it in switcher

only maximize when not in docked mode to not break windowed workflow
when docked.


(cherry picked from commit 3353d452494a818d03e101522474e98ebd89074e)

Co-authored-by: Luis Büchi <luis.buechi@server23.cc>

M  +4    -0    kwin/mobiletaskswitcher/qml/Task.qml

https://invent.kde.org/plasma/plasma-mobile/-/commit/ada43b08cdf9ab50118cd769ffc8d5647507854e