Bug 449924 - Windows are not resized back to original size
Summary: Windows are not resized back to original size
Status: RESOLVED DUPLICATE of bug 459136
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-10 10:09 UTC by Riccardo Robecchi
Modified: 2025-04-01 15:43 UTC (History)
4 users (show)

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


Attachments
Onboard xprop (10.09 KB, text/plain)
2022-02-10 12:59 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2022-02-10 10:09:06 UTC
SUMMARY
When using a virtual keyboard like Onboard, windows are resized to fit the space available on screen, which is usually reduced when the keyboard is opened. What has happened so far is that windows were resized back to their original size when Onboard was closed. After the update to Plasma 5.24, though, this is no longer the case and the windows keep their smaller size. This is obviously quite inconvenient and makes using Plasma on a touchscreen (or even on a non-touchscreen, if you need a virtual keyboard for accessibility reasons) much more complicated.

STEPS TO REPRODUCE
1. Open Onboard.
2. Close it.

OBSERVED RESULT
The windows are reduced in size when Onboard opens, then keep that size.

EXPECTED RESULT
The windows go back to their previous size.

SOFTWARE/OS VERSIONS
Linux: KDE neon, using X11
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2022-02-10 12:37:24 UTC
Can you post the xprop output of Onboard? (run xprop in terminal, e.g. `sleep 5 && xprop` and click anywhere inside onboard)
Comment 2 Riccardo Robecchi 2022-02-10 12:59:58 UTC
Created attachment 146534 [details]
Onboard xprop

Here it is. If you need anything else, let me know!
Comment 3 Riccardo Robecchi 2022-02-14 16:28:09 UTC
I have noticed the resizing issue extends beyond the use of virtual keyboards. As an example, it looks like connecting an external screen to my laptop (so a different device from the one used for the initial report) temporarily changes the screen geometry to a smaller one, making all windows smaller, and the normal size is not restored once the geometry itself is restored to the proper value.
Comment 4 Patrick Silva 2022-02-17 12:32:09 UTC
Same problem with maliit virtual keyboard  on Wayland session.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 5 Riccardo Robecchi 2022-02-18 21:36:30 UTC
(In reply to Riccardo Robecchi from comment #3)
> I have noticed the resizing issue extends beyond the use of virtual
> keyboards. As an example, it looks like connecting an external screen to my
> laptop (so a different device from the one used for the initial report)
> temporarily changes the screen geometry to a smaller one, making all windows
> smaller, and the normal size is not restored once the geometry itself is
> restored to the proper value.

I have tracked this specific case down to Latte and I have opened bug 450539, which was however immediately closed saying the problem stems from KWin.
Comment 6 Riccardo Robecchi 2022-08-16 22:29:03 UTC
As I have learned in these months, the bug is not related just to virtual keyboards. It applies to a variety of other situations, e.g. with Latte as mentioned before, but also with Plasma panels in some situations. It appears that KWin does not restore the size of windows properly in general, not just with virtual keyboards (and this may be the cause behind bug 457950, just to name one which I know).
Comment 7 Zamundaaa 2024-06-07 19:41:12 UTC
There has been a lot of work in this area since the last update on this bug report, most of these things should be fixed by now, so I'll mark this as resolved.
There's bug 459136 to track the remaining issue with virtual keyboards specifically; if you find any other corner cases where KWin doesn't restore window sizes properly, please make separate bug reports for the specific issues.
Comment 8 Riccardo Robecchi 2025-03-11 10:31:39 UTC
This has unfortunately never been fixed and has kept on happening all the time. I still have this issue with the latest Plasma.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Comment 9 Zamundaaa 2025-04-01 15:43:56 UTC
*** This bug has been marked as a duplicate of bug 459136 ***