Bug 313244 - Expose the existing BorderlessMaximizedWindows option in System settings
Summary: Expose the existing BorderlessMaximizedWindows option in System settings
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 4.9.97 (RC 2)
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 330797 383833 451348 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-14 14:49 UTC by Marco Poletti
Modified: 2023-01-25 00:29 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Poletti 2013-01-14 14:49:49 UTC
It's possible to have kwin automatically hide the decoration for maximized windows by setting::

[Windows]
BorderlessMaximizedWindows=true

in ~/.kde4/share/config/kwinrc.
However, this option has no corresponding checkbox in system settings.
It should have one, probably in Window behavior -> Moving.

Reproducible: Always
Comment 1 Thomas Lübking 2013-01-14 15:01:09 UTC
It's Martin's choice but afair this was supposed to be used with the netbook shell only.

Just FTR:
there should be absolutely NO reason that systemsettings (at least the kwin kcms) ever kill this setting (should be altered only when you switch between netbook and desktop shell - out of personal experience: never do that, lead to giant mess up here because it ran around and altered random settings and didn't correctly fix them back, but that's quite some time ago)
Comment 2 Martin Flöser 2013-01-14 15:07:39 UTC
I was actually thinking about removing the current implementation for the borderless maximize and replace it by a KWin script.

Pretty simple:
if (client.maximized) {
    client.noBorder = true;
} else {
    client.noBorder = false;
}

plus of course some wrapping around for the case that the window should really not have a window decoration.

That would automatically come with an option to enable it - as it would be in the scripts module.

But for the current implementation I would not want to expose an option.
Comment 3 Marco Poletti 2013-01-14 15:38:12 UTC
As a user, I don't know which implementation is better.
However, if the implementation as a script comes with an option, then I support that :-)
Of course, I have no idea if the change as a script is a good or bad idea from an implementation point of view, you should decide that.
Comment 4 Martin Flöser 2014-02-05 13:21:31 UTC
*** Bug 330797 has been marked as a duplicate of this bug. ***
Comment 5 ariasuni 2016-12-28 01:25:19 UTC
Unfortunately, either with the BorderlessMaximizedWindows setting or this KWin script <https://api.kde-look.org/p/1112547>, it doesn’t work on Wayland (both works on X.org). Is it not implemented yet or should I open a new bug report?
Comment 6 Martin Flöser 2016-12-28 05:51:12 UTC
Borderless maximized windows will be supported on Wayland starting in Plasma 5.9. I recently added support for it.
Comment 7 Martin Flöser 2017-08-22 17:33:34 UTC
*** Bug 383833 has been marked as a duplicate of this bug. ***
Comment 8 Vlad Zahorodnii 2023-01-24 13:56:22 UTC
Regardless of how borderless windows are implemented, I don't think that it makes sense to expose this in system settings because it's mostly useful for unity setups, which requires integration from either the window decoration or the desktop shell. Arguably, if such an option is needed at all, it should live where window controls will be displayed, e.g. a panel.
Comment 9 Natalie Clarius 2023-01-25 00:29:08 UTC
*** Bug 451348 has been marked as a duplicate of this bug. ***