Bug 430966 - Reset window size and position to factory settings
Summary: Reset window size and position to factory settings
Status: RESOLVED LATER
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.20.4
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-30 01:36 UTC by filefolderneon
Modified: 2024-04-25 13:58 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description filefolderneon 2020-12-30 01:36:52 UTC
SUMMARY
There is no direct possibility in KDE neon to simply use the mouse to perform a right click action at the top of the window on a KDE software e.g. Dolphin. Reset the window size and position to default. As if you start the software for the first time (after a clean installation).

STEPS TO REPRODUCE
1. Install KDE neon on a computer or use KDE neon on aq bootable Live USB.
2. Open a preinstalled KDE software e.g. Dolphin for the first time after installation.
3. You see immediately that is the default window size and position of Dolphin.
4. Change the window size and position with the mouse.
5. Now I want exactly the default window size and position as I saw in point 2.
6. This does not work, because if you perform a right-click action with the mouse at the top of the window of a KDE software to display additional functions, there is no such function as this "Reset to default window size and position".

OBSERVED RESULT
There is no direct function for the mouse to quickly and easily reset the window size and position for KDE software.

EXPECTED RESULT
I expect that a function for the mouse is added, where I can, for example, at the top of the window with the mouse to perform this function "Reset to window size and position".

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.20
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2


ADDITIONAL INFORMATION
I don't know of any operating system or mobile operating system that has such a feature and it's built right into the window manager to make it very easy and quick for the user to deploy.

The use cases are many, for example because of mess or for design reasons.
Comment 1 Nate Graham 2021-01-04 23:55:49 UTC
This is probably doable on Wayland, but on X11 it's messy and borderline impossible at the KWin level because on X11, applications themselves are allowed to be responsible for their own size and position.
Comment 2 filefolderneon 2021-01-05 03:56:27 UTC
(In reply to Nate Graham from comment #1)
> This is probably doable on Wayland, but on X11 it's messy and borderline
> impossible at the KWin level because on X11, applications themselves are
> allowed to be responsible for their own size and position.

Hey,

thanks for the answer. :)

I understand it would be very good if you can realize it with Wayland.

This function should be added not only in KDE neon but also for Plasma Mobile.


Additional information:
Do you have an idea of how we would add it?

Yes.

So it could look in the user interface as options in the system settings. If user does not want to do manually with the mouse for each KDE software, but at the same time.

System Settings -> Window Manager -> Applications -> Reset window size and position to factory settings

Select all (in this example this button was clicked). It is also possible to select individually or not all at once with the mouse.

Dolphin (✓)
Discover (✓)
Kate (✓)
etc.

-> when selected click on "Reset" button

When the user does this, the window size and position is brought to factory setting live. The user does not have to close the application, it happens live.
Comment 3 Zamundaaa 2024-04-25 13:58:34 UTC
As long as apps remember their own sizes, this is sadly not possible to fix. You have to delete the config entries in every app to reset the positions, and that's not something KWin can do